예제 #1
0
 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);
 }
예제 #2
0
 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);
 }