TypeReference Methods |
The TypeReference type exposes the following members.
Name | Description | |
---|---|---|
CheckedResolve | ||
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.) | |
GetElementType | ||
GetHashCode | Serves as the default hash function. (Inherited from Object.) | |
GetType | Gets the Type of the current instance. (Inherited from Object.) | |
IsTypeOf | ||
IsTypeSpecification | ||
MakeArrayType | ||
MakeArrayType(Int32) | ||
MakeByReferenceType | ||
MakeGenericInstanceType | ||
MakeOptionalModifierType | ||
MakePinnedType | ||
MakePointerType | ||
MakeRequiredModifierType | ||
MakeSentinelType | ||
MemberwiseClone | Creates a shallow copy of the current Object. (Inherited from Object.) | |
Resolve | ||
ToString | (Inherited from MemberReference.) |
Name | Description | |
---|---|---|
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.) | |
GetDelegateParameters |
Get the parameters for a delegate type.
(Defined by TypeDefinitionUtil.) | |
GetDelegateReturnType |
Get the return type for a delegate type.
(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.) | |
GetLocalGenericArgumentCount |
Get the number of local generic arguments for the type, NOT including arguments from any enclosing generic types.
(Defined by TypeDefinitionUtil.) | |
GetLocalGenericArguments |
Get the local generic arguments for the type, NOT including arguments from any enclosing generic types.
(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.) | |
IsNullableType |
Determine if the type is a nullable type.
(Defined by TypeDefinitionUtil.) | |
NonGenericName |
Returns the name without any trailing '`' and type parameter count.
(Defined by TypeDefinitionUtil.) |