Exemple #1
0
 public static PropertyAccessorHandler[] GetProperties <T>(Type type)
 {
     PropertyAccessorHandler[] properties = DataTypeCache.GetProperties(type);
     if (properties == null)
     {
         return(properties);
     }
     return(((IEnumerable <PropertyAccessorHandler>)properties).Where <PropertyAccessorHandler>((Func <PropertyAccessorHandler, bool>)(a => a.PropertyType.Equals(typeof(T)))).ToArray <PropertyAccessorHandler>());
 }
Exemple #2
0
 public static PropertyAccessorHandler[] GetProperties(Type type, string propertyName)
 {
     PropertyAccessorHandler[] properties = DataTypeCache.GetProperties(type);
     if (properties == null)
     {
         return(properties);
     }
     return(((IEnumerable <PropertyAccessorHandler>)properties).Where <PropertyAccessorHandler>((Func <PropertyAccessorHandler, bool>)(a => a.PropertyName == propertyName)).ToArray <PropertyAccessorHandler>());
 }
 public static PropertyAccessorHandler[] GetProperties <T>(Type type)
 {
     PropertyAccessorHandler[] properties = DataTypeCache.GetProperties(type);
     PropertyAccessorHandler[] result;
     if (properties == null)
     {
         result = properties;
     }
     else
     {
         result = (from a in properties
                   where a.PropertyType.Equals(typeof(T))
                   select a).ToArray <PropertyAccessorHandler>();
     }
     return(result);
 }
 public static PropertyAccessorHandler[] GetProperties(Type type, string propertyName)
 {
     PropertyAccessorHandler[] properties = DataTypeCache.GetProperties(type);
     PropertyAccessorHandler[] result;
     if (properties == null)
     {
         result = properties;
     }
     else
     {
         result = (from a in properties
                   where a.PropertyName == propertyName
                   select a).ToArray <PropertyAccessorHandler>();
     }
     return(result);
 }
 internal PropertyAccessorHandler[] GetResourceProperties()
 {
     return(DataTypeCache.GetProperties <ResourceItemData>(this.GetType()));
 }
 internal PropertyAccessorHandler[] GetProperties()
 {
     return(DataTypeCache.GetProperties(this.GetType()));
 }