Пример #1
0
 public static Type GetGenericInterface(this Type type, Type genericInterface)
 => PrimitiveHelper.GetGenericInterface(type, genericInterface);
Пример #2
0
 public static Type GetGenericElementType(this Type type)
 => PrimitiveHelper.GetGenericElementType(type);
Пример #3
0
 public static Type GetIEnumerableType(this Type type)
 => PrimitiveHelper.GetIEnumerableType(type);
Пример #4
0
 public static Type GetDictionaryType(this Type type)
 => PrimitiveHelper.GetDictionaryType(type);
Пример #5
0
 public static bool ImplementsGenericInterface(this Type type, Type interfaceType)
 => PrimitiveHelper.ImplementsGenericInterface(type, interfaceType);
Пример #6
0
 public static bool IsGenericType(this Type type, Type genericType)
 => PrimitiveHelper.IsGenericType(type, genericType);
Пример #7
0
 public static bool IsListType(this Type type)
 => PrimitiveHelper.IsListType(type);
Пример #8
0
 public static bool IsDictionaryType(this Type type)
 => PrimitiveHelper.IsDictionaryType(type);
Пример #9
0
 public static bool IsEnumerableType(this Type type)
 => PrimitiveHelper.IsEnumerableType(type);
Пример #10
0
 public static bool IsQueryableType(this Type type)
 => PrimitiveHelper.IsQueryableType(type);
Пример #11
0
 public static bool IsCollectionType(this Type type)
 => PrimitiveHelper.IsCollectionType(type);
Пример #12
0
 public static Type GetTypeOfNullable(this Type type)
 => PrimitiveHelper.GetTypeOfNullable(type);
Пример #13
0
 public static MemberInfo GetFieldOrProperty(this Type type, string name)
 => PrimitiveHelper.GetFieldOrProperty(type, name);
Пример #14
0
 public static MethodInfo GetInheritedMethod(this Type type, string name)
 => PrimitiveHelper.GetInheritedMethod(type, name);
Пример #15
0
 public static TValue GetOrDefault <TKey, TValue>(this IDictionary <TKey, TValue> dictionary, TKey key)
 => PrimitiveHelper.GetOrDefault(dictionary, key);