Пример #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;