|
OpenTAP 9.31
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 | GetTranslatedDisplayAttribute (this IReflectionData mem, CultureInfo language=null) |
| Gets a display attribute of mem in the selected language, if available. Otherwise the default display attribute is returned. 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 | The member to translate |
|
inlinestatic |
Gets a display attribute of mem in the selected language, if available. Otherwise the default display attribute is returned.
| mem | The member to translate |
| language | The desired language of the translation. If not specified, the language from EngineSettings is used. |
|
inlinestatic |
Returns true if a reflection ifno has an attribute of type T.
| T |
| mem |
| T | : | class |
OpenTAP 9.31 API built Fri Oct 17 2025 07:12:37