Class TypeExtensions
public static class TypeExtensions
- Inheritance
-
TypeExtensions
- Inherited Members
-
Methods
HasAttribute<TAttribute>(Type)
public static bool HasAttribute<TAttribute>(this Type type) where TAttribute : Attribute
Parameters
type
Type
Returns
- bool
Type Parameters
TAttribute
HasInterface<TInterface>(Type)
public static bool HasInterface<TInterface>(this Type type)
Parameters
type
Type
Returns
- bool
Type Parameters
TInterface
IsInteger(object)
public static bool IsInteger(this object value)
Parameters
value
object
Returns
- bool
IsNumber(Type)
public static bool IsNumber(this Type type)
Parameters
type
Type
Returns
- bool
TryGetAttribute<TAttribute>(Type, out TAttribute)
public static bool TryGetAttribute<TAttribute>(this Type type, out TAttribute attribute) where TAttribute : Attribute
Parameters
type
Type
attribute
TAttribute
Returns
- bool
Type Parameters
TAttribute