[This is preliminary documentation and is subject to change.]
The TypeTools type exposes the following members.
Methods
| Name | Description | |
|---|---|---|
| CanAutomaticallyCreateInstance | Gets value indicating if instance of geven type can be easily created using default CTor | |
| CreateInstance | Creates an instance of the specified type using that type's default constructor. | |
| DynamicCast(Object, Type) | Attempts to cast given tobject to given type | |
| DynamicCast<(Of <<'(T>)>>)(Object) | Attempts to cast given object to specific type | |
| FlagsFromString(String, Type) | Converts set of flags separated by separator to value of given enumeration | |
| FlagsFromString(String, Type, CultureInfo) | Converts set of flags separated by separator to value of given enumeration | |
| FlagsFromString(String, Type, TextInfo) | Converts set of flags separated by separator to value of given enumeration | |
| FlagsFromString(String, Type, String) | Converts set of flags separated by separator to value of given enumeration | |
| FlagsFromString<(Of <<'(T>)>>)(String) | Converts set of flags separated by separator to value of given enumeration | |
| FlagsFromString<(Of <<'(T>)>>)(String, CultureInfo) | Converts set of flags separated by separator to value of given enumeration | |
| FlagsFromString<(Of <<'(T>)>>)(String, TextInfo) | Converts set of flags separated by separator to value of given enumeration | |
| FlagsFromString<(Of <<'(T>)>>)(String, String) | Converts set of flags separated by separator to value of given enumeration | |
| GetAttribute<(Of <<'(T>)>>) | Gets first Attribute of specified type from specified ICustomAttributeProvider | |
| GetAttributes<(Of <<'(T>)>>) | Gets all Attributes of specified type from specified ICustomAttributeProvider | |
| GetConstant | Gets constant field that represents given enum value | |
| GetConstant(String, Type) | Gets FieldInfo representing constant of given name from an enumeration | |
| GetConstant<(Of <<'(T>)>>)(String) | Gets FieldInfo representing constant of given name from an enumeration | |
| GetConstant<(Of <<'(T>)>>)(T) | Gets FieldInfo that represent given constant within an enum | |
| GetDefaltCTor | Gets default CTor for given type | |
| GetEnumValue(Type, IConvertible) | Converts specified IConvertible to specified Enum (type-unsafe) | |
| GetEnumValue<(Of <<'(T>)>>)(IConvertible) | Converts specified IConvertible to specified Enum (type-safe) | |
| GetName | Gets name of given enumeration value | |
| GetToolBoxBitmap | Gets toolbox bitmap assciated with given Type | |
| GetValue | Gets value of enum in its unedlying type | |
| GetValue(String, Type) | Gets value of enum member | |
| GetValue<(Of <<'(T>)>>)(String) | Gets value of enum member | |
| GetValueInEnumBaseType(Type, IConvertible) | Converts specified value to underlying type of specified enumeration (type-unsafe) | |
| GetValueInEnumBaseType<(Of <<'(T>)>>)(IConvertible) | Converts specified value to underlying type of specified enumeration (type-safe) | |
| HasDefaultCTor | Gets value indicationg if given Type has default constructor | |
| InEnum<(Of <<'(T>)>>) | Checks if specified value is member of an enumeration | |
| IsDefined | Gets value idicating if given value is defined as constant in enumeration | |
| IsFlags | Gets value indicating if given value is of enum type which has FlagsAttribute applied | |
| IsFlags(Type) | Gets value indicating if given type is enum and has FlagsAttribute applied | |
| IsGenericCreatedFrom | Gets value indicating if given type is generic type created from another type being generic type definition | |
| IsGenericParentOf | Gets value indicating if given type is generic type definition from which another given type was created | |
| IsNullable | Gets value indicating if given type is nullable | |
| IsNullableOf | Gets value indicating if given type is Nullable<(Of <(<'T>)>)> and if another given type is its generic argument | |
| IsVector | Gets value indicating if type is vector |