public static IEnumerable <MethodInfoEx> GetMethodsEx(this Type type, BindingFlagsEx bindingFlags, bool enableCaching = true)
 {
     return(GetMethodsEx(type, (BindingFlags)bindingFlags, enableCaching));
 }
 public static MethodInfoEx GetMethodEx(this Type type, string name, BindingFlagsEx bindingFlags, bool enableCaching = true)
 {
     return(GetMethodEx(type, name, (BindingFlags)bindingFlags, enableCaching));
 }
 public static IReadOnlyDictionary <string, MethodInfoEx> GetMethodsExDic(this Type type, BindingFlagsEx bindingFlags, bool enableCaching = true)
 {
     return(GetMethodsExDic(type, (BindingFlags)bindingFlags, enableCaching));
 }
Example #4
0
 public FieldInfoExWrapper(object wrappedObject, BindingFlagsEx bindingFlags = BindingFlagsEx.All, bool enableFieldCaching = true)
     : this(wrappedObject, (BindingFlags)bindingFlags, enableFieldCaching)
 {
 }
 public static IEnumerable <PropertyInfoEx> GetPropertiesEx(this Type type, BindingFlagsEx bindingFlags, bool enableCaching = true)
 {
     return(GetPropertiesEx(type, (BindingFlags)bindingFlags, enableCaching));
 }
Example #6
0
 public static IReadOnlyDictionary <string, FieldInfoEx> GetFieldsExDic(Type type, BindingFlagsEx bindingFlags)
 {
     return(GetFieldsExDic(type, (BindingFlags)bindingFlags));
 }
Example #7
0
 public static IEnumerable <FieldInfoEx> GetFieldsEx(Type type, BindingFlagsEx bindingFlags)
 {
     return(GetFieldsEx(type, (BindingFlags)bindingFlags));
 }
Example #8
0
 public static IEnumerable <PropertyInfoEx> GetPropertiesEx(Type type, BindingFlagsEx bindingFlags)
 {
     return(GetPropertiesEx(type, (BindingFlags)bindingFlags));
 }
Example #9
0
 public static FieldInfoEx GetFieldEx(Type type, string name, BindingFlagsEx bindingFlags)
 {
     return(GetFieldEx(type, name, (BindingFlags)bindingFlags));
 }
Example #10
0
 public static PropertyInfoEx GetPropertyEx(Type type, string name, BindingFlagsEx bindingFlags)
 {
     return(GetPropertyEx(type, name, (BindingFlags)bindingFlags));
 }
Example #11
0
 public static IReadOnlyDictionary <string, PropertyInfoEx> GetPropertiesExDic(Type type, BindingFlagsEx bindingFlags)
 {
     return(GetPropertiesExDic(type, (BindingFlags)bindingFlags));
 }
Example #12
0
 public static IEnumerable <ConstructorInfoEx> GetConstructorsEx(this Type type, BindingFlagsEx bindingFlags, bool enableCaching = true)
 {
     if (enableCaching)
     {
         return(ConstructorInfoExCache.GetConstructorsExDic(type, (BindingFlags)bindingFlags).Values);
     }
     else
     {
         return(type.GetConstructors((BindingFlags)bindingFlags).Select(x => new ConstructorInfoEx(x, false)));
     }
 }
Example #13
0
 public static ConstructorInfoEx GetConstructorEx(this Type type, IEnumerable <Type> signature, BindingFlagsEx bindingFlags, bool enableCaching = true)
 {
     return(GetConstructorEx(type, signature, (BindingFlags)bindingFlags, enableCaching));
 }
Example #14
0
 public PropertyInfoExWrapper(object wrappedObject, BindingFlagsEx bindingFlags = BindingFlagsEx.All, bool enablePropertyCaching = true)
     : this(wrappedObject, (BindingFlags)bindingFlags, enablePropertyCaching)
 {
 }
 public ValueMemberInfoExWrapper(object wrappedObject, BindingFlagsEx bindingFlags = BindingFlagsEx.All, bool enableCaching = true)
     : this(wrappedObject, (BindingFlags)bindingFlags, enableCaching)
 {
 }
Example #16
0
 public static MethodInfoEx GetMethodEx(Type type, string name, IEnumerable <Type> signature, BindingFlagsEx bindingFlags)
 {
     return(GetMethodEx(type, name, signature, (BindingFlags)bindingFlags));
 }