TypeDefinition Methods |
The TypeDefinition type exposes the following members.
Name | Description | |
---|---|---|
CheckedResolve | (Inherited from TypeReference.) | |
Equals | Determines whether the specified object is equal to the current object. (Inherited from Object.) | |
Finalize | Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from Object.) | |
GetConstructors | ||
GetElementType | (Inherited from TypeReference.) | |
GetEnumUnderlyingType | ||
GetHashCode | Serves as the default hash function. (Inherited from Object.) | |
GetMethods | ||
GetNestedType | ||
GetStaticConstructor | ||
GetType | Gets the Type of the current instance. (Inherited from Object.) | |
IsTypeOf | (Inherited from TypeReference.) | |
IsTypeSpecification | (Inherited from TypeReference.) | |
MakeArrayType | (Inherited from TypeReference.) | |
MakeArrayType(Int32) | (Inherited from TypeReference.) | |
MakeByReferenceType | (Inherited from TypeReference.) | |
MakeGenericInstanceType | (Inherited from TypeReference.) | |
MakeOptionalModifierType | (Inherited from TypeReference.) | |
MakePinnedType | (Inherited from TypeReference.) | |
MakePointerType | (Inherited from TypeReference.) | |
MakeRequiredModifierType | (Inherited from TypeReference.) | |
MakeSentinelType | (Inherited from TypeReference.) | |
MemberwiseClone | Creates a shallow copy of the current Object. (Inherited from Object.) | |
Resolve | (Overrides TypeReferenceResolve.) | |
ToString | (Inherited from MemberReference.) |
Name | Description | |
---|---|---|
FindExtensionMethods |
Search for extension methods on the type with the specified name.
(Defined by TypeDefinitionUtil.) | |
FindTypeArgument |
Find a type argument for the specified type parameter.
(Defined by TypeDefinitionUtil.) | |
FindTypeArgumentInBase |
Find a type argument in a base class for the specified type parameter.
(Defined by TypeDefinitionUtil.) | |
FindTypeParameterIndex |
Find the index of the specified type parameter.
(Defined by TypeDefinitionUtil.) | |
GetCategory |
Get the category name (field, method, etc).
(Defined by MemberReferenceUtil.) | |
GetConstructor |
Search for a constructor by name and parameter types. Does 'loose' matching on generic parameter types.
(Defined by TypeDefinitionUtil.) | |
GetConstructors |
Search for all methods with the specified name and flags.
(Defined by TypeDefinitionUtil.) | |
GetCustomAttribute |
Get the custom attribute with the specified name from the ICustomAttributeProvider. If there are multiple attributes with the name, the first one is returned.
(Defined by ICustomAttributeProviderUtil.) | |
GetCustomAttributes |
Get all custom attributes with the specified name from the ICustomAttributeProvider.
(Defined by ICustomAttributeProviderUtil.) | |
GetDelegateParameters |
Get the parameters for a delegate type.
(Defined by TypeDefinitionUtil.) | |
GetDelegateReturnType |
Get the return type for a delegate type.
(Defined by TypeDefinitionUtil.) | |
GetEvent |
Search for an event by name. Searches base interfaces.
(Defined by TypeDefinitionUtil.) | |
GetFullName |
Get the full name of the type or member, including the namespace name.
(Defined by MemberReferenceUtil.) | |
GetGenericTypeDefinition |
Get the generic type definition if the type is a generic type instance (otherwise, just return the type).
(Defined by TypeDefinitionUtil.) | |
GetIndexer |
Search for an indexer by parameter types. Does 'loose' matching on generic parameter types, and searches base interfaces.
(Defined by TypeDefinitionUtil.) | |
GetIndexers |
Search for all indexers with the specified flags.
(Defined by TypeDefinitionUtil.) | |
GetLocalGenericArgumentCount | Overloaded.
Get the number of local generic parameters for the type definition, NOT including arguments from any enclosing generic types.
(Defined by TypeDefinitionUtil.) | |
GetLocalGenericArgumentCount | Overloaded.
Get the number of local generic arguments for the type, NOT including arguments from any enclosing generic types.
(Defined by TypeDefinitionUtil.) | |
GetLocalGenericArguments | Overloaded.
Get the local generic parameters for the type definition, NOT including arguments from any enclosing generic types.
(Defined by TypeDefinitionUtil.) | |
GetLocalGenericArguments | Overloaded.
Get the local generic arguments for the type, NOT including arguments from any enclosing generic types.
(Defined by TypeDefinitionUtil.) | |
GetMembers |
Search for all members with the specified name.
(Defined by TypeDefinitionUtil.) | |
GetMethod(String) | Overloaded.
Find the method with the specified name.
(Defined by TypeDefinitionUtil.) | |
GetMethod(String, TypeReference) | Overloaded.
Search for a method by name and parameter types. Does 'loose' matching on generic
parameter types, and searches base interfaces.
(Defined by TypeDefinitionUtil.) | |
GetMethod(String, BindingFlags, TypeReference) | Overloaded.
Search for a method by name, parameter types, and binding flags. Does 'loose' matching on generic
parameter types, and searches base interfaces.
(Defined by TypeDefinitionUtil.) | |
GetMethods |
Search for all methods with the specified name and flags.
(Defined by TypeDefinitionUtil.) | |
GetProperty |
Search for a property by name. Searches base interfaces.
(Defined by TypeDefinitionUtil.) | |
GetUnderlyingTypeOfEnum |
Get the underlying type of an enum.
(Defined by TypeDefinitionUtil.) | |
HasCustomAttribute |
Determine if the ICustomAttributeProvider has a custom attribute.
(Defined by ICustomAttributeProviderUtil.) | |
HasDynamicType |
Determine if the member has a dynamic type.
(Defined by ICustomAttributeProviderUtil.) | |
IsAssignableFrom |
Determine if the type is assignable from the specified type.
(Defined by TypeDefinitionUtil.) | |
IsBitFlagsEnum |
Determine if the type is a bit-flags style enum.
(Defined by TypeDefinitionUtil.) | |
IsComImport |
True if the type is a COM Import.
(Defined by TypeDefinitionUtil.) | |
IsDelegateType |
Determine if the type is a delegate type.
(Defined by TypeDefinitionUtil.) | |
IsEnum |
Determine if the type is an enum.
(Defined by TypeDefinitionUtil.) | |
IsFixedBufferType |
Determine if the type is a fixed-buffer type.
(Defined by TypeDefinitionUtil.) | |
IsGenericTypeDefinition |
Determine if the type is a generic type definition (as opposed to an instance).
(Defined by TypeDefinitionUtil.) | |
IsImplementationOf |
Determine if the type implements the specified interface.
(Defined by TypeDefinitionUtil.) | |
IsInternal |
Return true if the type is internal, otherwise false.
(Defined by TypeDefinitionUtil.) | |
IsNullableType |
Determine if the type is a nullable type.
(Defined by TypeDefinitionUtil.) | |
IsPrivate |
Return true if the type is private, otherwise false.
(Defined by TypeDefinitionUtil.) | |
IsProtected |
Return true if the type is protected, otherwise false.
(Defined by TypeDefinitionUtil.) | |
IsStatic |
Return true if the type is static, otherwise false.
(Defined by TypeDefinitionUtil.) | |
IsSubclassOf |
Determine if the type is a subclass of the specified type.
(Defined by TypeDefinitionUtil.) | |
IsUserClass |
Determine if the type is a user-defined class (excludes 'object' and 'string').
(Defined by TypeDefinitionUtil.) | |
IsUserStruct |
Determine if the type is a user-defined struct (excludes primitive types including 'void' and 'decimal', and enums).
(Defined by TypeDefinitionUtil.) | |
MakeArrayType |
Make an array type.
(Defined by TypeDefinitionUtil.) | |
NonGenericName |
Returns the name without any trailing '`' and type parameter count.
(Defined by TypeDefinitionUtil.) |