public PropertyMapping FindByFilterItem(string filterItem) { foreach (object obj in this) { if (obj is PropertyMapping) { PropertyMapping propMap = (PropertyMapping)obj; if (propMap.FilterItem.Equals(filterItem)) { return(propMap); } } } return(null); }
public PropertyMapping FindByPropertyName(string propertyName) { foreach (object obj in this) { if (obj is PropertyMapping) { PropertyMapping propMap = (PropertyMapping)obj; if (propMap.PropertyName.Equals(propertyName)) { return(propMap); } } } return(null); }