TypeDefinitionUtil Class |
Namespace: Nova.Utilities
public static class TypeDefinitionUtil
The TypeDefinitionUtil type exposes the following members.
Name | Description | |
---|---|---|
![]() ![]() | FindExtensionMethods |
Search for extension methods on the type with the specified name.
|
![]() ![]() | FindTypeArgument |
Find a type argument for the specified type parameter.
|
![]() ![]() | FindTypeArgumentInBase |
Find a type argument in a base class for the specified type parameter.
|
![]() ![]() | FindTypeParameterIndex |
Find the index of the specified type parameter.
|
![]() ![]() | GetConstructor |
Search for a constructor by name and parameter types. Does 'loose' matching on generic parameter types.
|
![]() ![]() | GetConstructors |
Search for all methods with the specified name and flags.
|
![]() ![]() | GetDelegateParameters |
Get the parameters for a delegate type.
|
![]() ![]() | GetDelegateReturnType |
Get the return type for a delegate type.
|
![]() ![]() | GetEvent |
Search for an event by name. Searches base interfaces.
|
![]() ![]() | GetGenericTypeDefinition |
Get the generic type definition if the type is a generic type instance (otherwise, just return the type).
|
![]() ![]() | GetIndexer |
Search for an indexer by parameter types. Does 'loose' matching on generic parameter types, and searches base interfaces.
|
![]() ![]() | GetIndexers |
Search for all indexers with the specified flags.
|
![]() ![]() | GetInvokeMethod |
Get the 'Invoke()' method for the specified TypeDefinition.
|
![]() ![]() | GetLocalGenericArgumentCount(TypeDefinition) |
Get the number of local generic parameters for the type definition, NOT including arguments from any enclosing generic types.
|
![]() ![]() | GetLocalGenericArgumentCount(TypeReference) |
Get the number of local generic arguments for the type, NOT including arguments from any enclosing generic types.
|
![]() ![]() | GetLocalGenericArguments(TypeDefinition) |
Get the local generic parameters for the type definition, NOT including arguments from any enclosing generic types.
|
![]() ![]() | GetLocalGenericArguments(TypeReference) |
Get the local generic arguments for the type, NOT including arguments from any enclosing generic types.
|
![]() ![]() | GetMembers |
Search for all members with the specified name.
|
![]() ![]() | GetMethod(TypeDefinition, String) |
Find the method with the specified name.
|
![]() ![]() | GetMethod(TypeDefinition, String, TypeReference) |
Search for a method by name and parameter types. Does 'loose' matching on generic
parameter types, and searches base interfaces.
|
![]() ![]() | GetMethod(TypeDefinition, String, BindingFlags, TypeReference) |
Search for a method by name, parameter types, and binding flags. Does 'loose' matching on generic
parameter types, and searches base interfaces.
|
![]() ![]() | GetMethods |
Search for all methods with the specified name and flags.
|
![]() ![]() | GetProperty |
Search for a property by name. Searches base interfaces.
|
![]() ![]() | GetUnderlyingTypeOfEnum |
Get the underlying type of an enum.
|
![]() ![]() | IsAssignableFrom |
Determine if the type is assignable from the specified type.
|
![]() ![]() | IsBitFlagsEnum |
Determine if the type is a bit-flags style enum.
|
![]() ![]() | IsComImport |
True if the type is a COM Import.
|
![]() ![]() | IsDelegateType |
Determine if the type is a delegate type.
|
![]() ![]() | IsEnum |
Determine if the type is an enum.
|
![]() ![]() | IsFixedBufferType |
Determine if the type is a fixed-buffer type.
|
![]() ![]() | IsGenericTypeDefinition |
Determine if the type is a generic type definition (as opposed to an instance).
|
![]() ![]() | IsImplementationOf |
Determine if the type implements the specified interface.
|
![]() ![]() | IsInternal |
Return true if the type is internal, otherwise false.
|
![]() ![]() | IsNullableType |
Determine if the type is a nullable type.
|
![]() ![]() | IsPrivate |
Return true if the type is private, otherwise false.
|
![]() ![]() | IsProtected |
Return true if the type is protected, otherwise false.
|
![]() ![]() | IsStatic |
Return true if the type is static, otherwise false.
|
![]() ![]() | IsSubclassOf |
Determine if the type is a subclass of the specified type.
|
![]() ![]() | IsUserClass |
Determine if the type is a user-defined class (excludes 'object' and 'string').
|
![]() ![]() | IsUserStruct |
Determine if the type is a user-defined struct (excludes primitive types including 'void' and 'decimal', and enums).
|
![]() ![]() | MakeArrayType |
Make an array type.
|
![]() ![]() | NonGenericName |
Returns the name without any trailing '`' and type parameter count.
|
Name | Description | |
---|---|---|
![]() ![]() | FlagsAttributeName |
The name of the flags attribute.
|
![]() ![]() | GuidAttributeName |
The name of the Guid attribute.
|
![]() ![]() | StandardModuleAttributeName |
The name of the extension method attribute.
|
![]() ![]() | T |
Special type used to match any generic parameter type in GetMethod() and GetConstructor().
|