public IEnumerable <object> GetRowValues(RowItem rowItem) { var rawValues = PropertyDescriptors.Select(pd => pd.GetValue(rowItem)); if (Transform != null) { return(Transform.TransformRow(rawValues).Cast <object>()); } return(rawValues); }
/// <summary> /// Ctor. /// </summary> /// <param name="eventTypeData">The event type data.</param> public CatalystEventType(XElement eventTypeData) { _eventTypeData = eventTypeData; Name = EventTypeExtensions.RequireAttribute(_eventTypeData, "name"); PropertyDescriptors = _eventTypeData .Elements("propertyDescriptor") .Select(element => element.ToEventPropertyDescriptor()) .ToList(); PropertyNames = PropertyDescriptors .Select(propertyDescriptor => propertyDescriptor.PropertyName) .ToList(); }