示例#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);