OpenTAP 9.25
API Reference
|
Helpers for work with ITypeInfo objects. More...
Static Public Member Functions | |
static object | CreateInstance (this ITypeData type) |
Creates an instance of this type using the default constructor. | |
static bool | DescendsTo (this ITypeData type, ITypeData basetype) |
returns true if 'type' is a descendant of 'basetype'. More... | |
static bool | DescendsTo (this ITypeData type, Type basetype) |
returns tru if 'type' is a descendant of 'basetype'. More... | |
static bool | HasAttribute< T > (this IReflectionData mem) |
Returns true if a reflection ifno has an attribute of type T. More... | |
static T | GetAttribute< T > (this IReflectionData mem) |
Gets the attribute of type T from mem. More... | |
static IEnumerable< T > | GetAttributes< T > (this IReflectionData mem) |
Gets all the attributes of type T. More... | |
static DisplayAttribute | GetDisplayAttribute (this IReflectionData mem) |
Gets the display attribute of mem. More... | |
Helpers for work with ITypeInfo objects.
|
inlinestatic |
returns true if 'type' is a descendant of 'basetype'.
type | |
basetype |
|
inlinestatic |
returns tru if 'type' is a descendant of 'basetype'.
type | |
basetype |
|
inlinestatic |
Gets the attribute of type T from mem.
T |
mem |
|
inlinestatic |
Gets all the attributes of type T.
T |
mem |
|
inlinestatic |
Gets the display attribute of mem.
mem |
|
inlinestatic |
Returns true if a reflection ifno has an attribute of type T.
T |
mem |
T | : | class |
OpenTAP 9.25 API built Tue Aug 6 2024 07:49:24