示例#1
0
 public static bool IsPrimitive(this TypeInfo type)
 => type.EnsureNotNull(nameof(type)).Value.IsPrimitive;
示例#2
0
 public static bool IsAbstract(this TypeInfo type)
 => type.EnsureNotNull(nameof(type)).Value.IsAbstract;
示例#3
0
 public static bool ContainsGenericParameters(this TypeInfo type)
 => type.EnsureNotNull(nameof(type)).Value.ContainsGenericParameters;
示例#4
0
 public static bool IsGenericTypeDefinition(this TypeInfo type)
 => type.EnsureNotNull(nameof(type)).Value.IsGenericTypeDefinition;
示例#5
0
 public static bool IsEnum(this TypeInfo type)
 => type.EnsureNotNull(nameof(type)).Value.IsEnum;
示例#6
0
 public static bool IsInterface(this TypeInfo type)
 => type.EnsureNotNull(nameof(type)).Value.IsInterface;