Class TypeSpec
Represents type specification, the set of type information stored in the signature, as defined by ECMA-335
Inheritance
System.Object
System.Reflection.MemberInfo
System.Type
TypeSpec
Implements
System.Reflection.ICustomAttributeProvider
System.Runtime.InteropServices._MemberInfo
System.Runtime.InteropServices._Type
System.Reflection.IReflect
Inherited Members
System.Type.FilterAttribute
System.Type.FilterName
System.Type.FilterNameIgnoreCase
System.Type.Missing
System.Type.Delimiter
System.Type.EmptyTypes
System.Type.GetType(System.String, System.Boolean, System.Boolean)
System.Type.GetType(System.String, System.Boolean)
System.Type.GetType(System.String)
System.Type.GetType(System.String, System.Func<System.Reflection.AssemblyName, System.Reflection.Assembly>, System.Func<System.Reflection.Assembly, System.String, System.Boolean, System.Type>)
System.Type.GetType(System.String, System.Func<System.Reflection.AssemblyName, System.Reflection.Assembly>, System.Func<System.Reflection.Assembly, System.String, System.Boolean, System.Type>, System.Boolean)
System.Type.GetType(System.String, System.Func<System.Reflection.AssemblyName, System.Reflection.Assembly>, System.Func<System.Reflection.Assembly, System.String, System.Boolean, System.Type>, System.Boolean, System.Boolean)
System.Type.ReflectionOnlyGetType(System.String, System.Boolean, System.Boolean)
System.Type.MakeArrayType(System.Int32)
System.Type.GetTypeFromProgID(System.String)
System.Type.GetTypeFromProgID(System.String, System.Boolean)
System.Type.GetTypeFromProgID(System.String, System.String)
System.Type.GetTypeFromProgID(System.String, System.String, System.Boolean)
System.Type.GetTypeFromCLSID(System.Guid)
System.Type.GetTypeFromCLSID(System.Guid, System.Boolean)
System.Type.GetTypeFromCLSID(System.Guid, System.String)
System.Type.GetTypeFromCLSID(System.Guid, System.String, System.Boolean)
System.Type.GetTypeCode(System.Type)
System.Type.GetTypeCodeImpl()
System.Type.InvokeMember(System.String, System.Reflection.BindingFlags, System.Reflection.Binder, System.Object, System.Object[], System.Globalization.CultureInfo)
System.Type.InvokeMember(System.String, System.Reflection.BindingFlags, System.Reflection.Binder, System.Object, System.Object[])
System.Type.GetTypeHandle(System.Object)
System.Type.GetTypeFromHandle(System.RuntimeTypeHandle)
System.Type.GetConstructor(System.Reflection.BindingFlags, System.Reflection.Binder, System.Reflection.CallingConventions, System.Type[], System.Reflection.ParameterModifier[])
System.Type.GetConstructor(System.Reflection.BindingFlags, System.Reflection.Binder, System.Type[], System.Reflection.ParameterModifier[])
System.Type.GetConstructor(System.Type[])
System.Type.GetConstructors()
System.Type.GetMethod(System.String, System.Reflection.BindingFlags, System.Reflection.Binder, System.Reflection.CallingConventions, System.Type[], System.Reflection.ParameterModifier[])
System.Type.GetMethod(System.String, System.Reflection.BindingFlags, System.Reflection.Binder, System.Type[], System.Reflection.ParameterModifier[])
System.Type.GetMethod(System.String, System.Type[], System.Reflection.ParameterModifier[])
System.Type.GetMethod(System.String, System.Type[])
System.Type.GetMethod(System.String, System.Reflection.BindingFlags)
System.Type.GetMethod(System.String)
System.Type.GetMethods()
System.Type.GetField(System.String)
System.Type.GetFields()
System.Type.GetInterface(System.String)
System.Type.FindInterfaces(System.Reflection.TypeFilter, System.Object)
System.Type.GetEvent(System.String)
System.Type.GetEvents()
System.Type.GetProperty(System.String, System.Reflection.BindingFlags, System.Reflection.Binder, System.Type, System.Type[], System.Reflection.ParameterModifier[])
System.Type.GetProperty(System.String, System.Type, System.Type[], System.Reflection.ParameterModifier[])
System.Type.GetProperty(System.String, System.Reflection.BindingFlags)
System.Type.GetProperty(System.String, System.Type, System.Type[])
System.Type.GetProperty(System.String, System.Type[])
System.Type.GetProperty(System.String, System.Type)
System.Type.GetProperty(System.String)
System.Type.GetProperties()
System.Type.GetNestedTypes()
System.Type.GetNestedType(System.String)
System.Type.GetMember(System.String)
System.Type.GetMember(System.String, System.Reflection.BindingFlags)
System.Type.GetMember(System.String, System.Reflection.MemberTypes, System.Reflection.BindingFlags)
System.Type.GetMembers()
System.Type.GetDefaultMembers()
System.Type.FindMembers(System.Reflection.MemberTypes, System.Reflection.BindingFlags, System.Reflection.MemberFilter, System.Object)
System.Type.IsContextfulImpl()
System.Type.IsMarshalByRefImpl()
System.Type.GetEnumNames()
System.Type.GetEnumValues()
System.Type.GetEnumUnderlyingType()
System.Type.IsEnumDefined(System.Object)
System.Type.GetEnumName(System.Object)
System.Type.IsSubclassOf(System.Type)
System.Type.IsInstanceOfType(System.Object)
System.Type.IsEquivalentTo(System.Type)
System.Type.GetTypeArray(System.Object[])
System.Type.Equals(System.Object)
System.Type.Equals(System.Type)
System.Type.GetHashCode()
System.Type.GetInterfaceMap(System.Type)
System.Type.GetType()
System.Type.System.Runtime.InteropServices._Type.GetTypeInfoCount(System.UInt32)
System.Type.System.Runtime.InteropServices._Type.GetTypeInfo(System.UInt32, System.UInt32, System.IntPtr)
System.Type.System.Runtime.InteropServices._Type.GetIDsOfNames(System.Guid, System.IntPtr, System.UInt32, System.UInt32, System.IntPtr)
System.Type.System.Runtime.InteropServices._Type.Invoke(System.UInt32, System.Guid, System.UInt32, System.Int16, System.IntPtr, System.IntPtr, System.IntPtr, System.IntPtr)
System.Type.MemberType
System.Type.ReflectedType
System.Type.DefaultBinder
System.Type.TypeHandle
System.Type.TypeInitializer
System.Type.IsNested
System.Type.Attributes
System.Type.IsVisible
System.Type.IsNotPublic
System.Type.IsPublic
System.Type.IsNestedPublic
System.Type.IsNestedPrivate
System.Type.IsNestedFamily
System.Type.IsNestedAssembly
System.Type.IsNestedFamANDAssem
System.Type.IsNestedFamORAssem
System.Type.IsAutoLayout
System.Type.IsLayoutSequential
System.Type.IsExplicitLayout
System.Type.IsClass
System.Type.IsInterface
System.Type.IsValueType
System.Type.IsAbstract
System.Type.IsSealed
System.Type.IsEnum
System.Type.IsSpecialName
System.Type.IsImport
System.Type.IsSerializable
System.Type.IsAnsiClass
System.Type.IsUnicodeClass
System.Type.IsAutoClass
System.Type.IsArray
System.Type.IsConstructedGenericType
System.Type.ContainsGenericParameters
System.Type.IsByRef
System.Type.IsPointer
System.Type.IsPrimitive
System.Type.IsCOMObject
System.Type.HasElementType
System.Type.IsContextful
System.Type.IsMarshalByRef
System.Type.GenericTypeArguments
System.Type.IsSecurityCritical
System.Type.IsSecuritySafeCritical
System.Type.IsSecurityTransparent
System.Reflection.MemberInfo.GetCustomAttributesData()
System.Reflection.MemberInfo.System.Runtime.InteropServices._MemberInfo.GetType()
System.Reflection.MemberInfo.System.Runtime.InteropServices._MemberInfo.GetTypeInfoCount(System.UInt32)
System.Reflection.MemberInfo.System.Runtime.InteropServices._MemberInfo.GetTypeInfo(System.UInt32, System.UInt32, System.IntPtr)
System.Reflection.MemberInfo.System.Runtime.InteropServices._MemberInfo.GetIDsOfNames(System.Guid, System.IntPtr, System.UInt32, System.UInt32, System.IntPtr)
System.Reflection.MemberInfo.System.Runtime.InteropServices._MemberInfo.Invoke(System.UInt32, System.Guid, System.UInt32, System.Int16, System.IntPtr, System.IntPtr, System.IntPtr, System.IntPtr)
System.Reflection.MemberInfo.CustomAttributes
System.Object.Equals(System.Object, System.Object)
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.MemberwiseClone()
Assembly: CilTools.BytecodeAnalysis.dll
public class TypeSpec : Type, ICustomAttributeProvider, _MemberInfo, _Type, IReflect, ITypeInfo, IReflectionInfo
Properties
Declaration
public override Assembly Assembly { get; }
Property Value
| Type |
Description |
| System.Reflection.Assembly |
|
Overrides
System.Type.Assembly
Declaration
public override string AssemblyQualifiedName { get; }
Property Value
| Type |
Description |
| System.String |
|
Overrides
System.Type.AssemblyQualifiedName
Declaration
public override Type BaseType { get; }
Property Value
| Type |
Description |
| System.Type |
|
Overrides
System.Type.BaseType
Declaration
public override MethodBase DeclaringMethod { get; }
Property Value
| Type |
Description |
| System.Reflection.MethodBase |
|
Overrides
System.Type.DeclaringMethod
Declaration
public override Type DeclaringType { get; }
Property Value
| Type |
Description |
| System.Type |
|
Overrides
System.Type.DeclaringType
Gets the element type of this type specification
Declaration
public ElementType ElementType { get; }
Property Value
Declaration
public override string FullName { get; }
Property Value
| Type |
Description |
| System.String |
|
Overrides
System.Type.FullName
Declaration
public override GenericParameterAttributes GenericParameterAttributes { get; }
Property Value
| Type |
Description |
| System.Reflection.GenericParameterAttributes |
|
Overrides
System.Type.GenericParameterAttributes
Declaration
public override int GenericParameterPosition { get; }
Property Value
| Type |
Description |
| System.Int32 |
|
Overrides
System.Type.GenericParameterPosition
Declaration
public override Guid GUID { get; }
Property Value
| Type |
Description |
| System.Guid |
|
Overrides
System.Type.GUID
Gets the inner type specification if this instance represents an array or pointer type. For other types,
the value is null
Declaration
public TypeSpec InnerTypeSpec { get; }
Property Value
Gets a value indicating whether this TypeSpec represents a function pointer
Declaration
public bool IsFunctionPointer { get; }
Property Value
| Type |
Description |
| System.Boolean |
|
Declaration
public override bool IsGenericParameter { get; }
Property Value
| Type |
Description |
| System.Boolean |
|
Overrides
System.Type.IsGenericParameter
Declaration
public override bool IsGenericType { get; }
Property Value
| Type |
Description |
| System.Boolean |
|
Overrides
System.Type.IsGenericType
Declaration
public override bool IsGenericTypeDefinition { get; }
Property Value
| Type |
Description |
| System.Boolean |
|
Overrides
System.Type.IsGenericTypeDefinition
Gets the value indicating whether this TypeSpec represents pinned local variable
Declaration
public bool IsPinned { get; }
Property Value
| Type |
Description |
| System.Boolean |
|
Declaration
public override int MetadataToken { get; }
Property Value
| Type |
Description |
| System.Int32 |
|
Overrides
System.Reflection.MemberInfo.MetadataToken
Enumerates custom modifiers associated with this type specification
Declaration
public IEnumerable<CustomModifier> Modifiers { get; }
Property Value
| Type |
Description |
| System.Collections.Generic.IEnumerable<CustomModifier> |
|
Gets the amount of custom modifiers associated with this type specification
Declaration
public int ModifiersCount { get; }
Property Value
| Type |
Description |
| System.Int32 |
|
Declaration
public override Module Module { get; }
Property Value
| Type |
Description |
| System.Reflection.Module |
|
Overrides
System.Type.Module
Declaration
public override string Name { get; }
Property Value
| Type |
Description |
| System.String |
|
Overrides
System.Reflection.MemberInfo.Name
Declaration
public override string Namespace { get; }
Property Value
| Type |
Description |
| System.String |
|
Overrides
System.Type.Namespace
Declaration
public override StructLayoutAttribute StructLayoutAttribute { get; }
Property Value
| Type |
Description |
| System.Runtime.InteropServices.StructLayoutAttribute |
|
Overrides
System.Type.StructLayoutAttribute
Gets the target function signature, if this TypeSpec represents a function pointer. Otherwise, returns null.
Declaration
public Signature TargetSignature { get; }
Property Value
Gets the type which this type specification represents (deprecated)
Declaration
public Type Type { get; }
Property Value
| Type |
Description |
| System.Type |
|
Declaration
public override Type UnderlyingSystemType { get; }
Property Value
| Type |
Description |
| System.Type |
|
Overrides
System.Type.UnderlyingSystemType
Methods
Creates a TypeSpec object that represents a special type (that is, a type referenced using special
keyword in CIL assembler)
Declaration
public static TypeSpec CreateSpecialType(ElementType et)
Parameters
| Type |
Name |
Description |
| ElementType |
et |
Element type that identifies a special type
|
Returns
Exceptions
| Type |
Condition |
| System.ArgumentException |
The specified element type does not represent a special type
|
Declaration
public override int GetArrayRank()
Returns
| Type |
Description |
| System.Int32 |
|
Overrides
System.Type.GetArrayRank()
Declaration
protected override TypeAttributes GetAttributeFlagsImpl()
Returns
| Type |
Description |
| System.Reflection.TypeAttributes |
|
Overrides
System.Type.GetAttributeFlagsImpl()
Declaration
protected override ConstructorInfo GetConstructorImpl(BindingFlags bindingAttr, Binder binder, CallingConventions callConvention, Type[] types, ParameterModifier[] modifiers)
Parameters
| Type |
Name |
Description |
| System.Reflection.BindingFlags |
bindingAttr |
|
| System.Reflection.Binder |
binder |
|
| System.Reflection.CallingConventions |
callConvention |
|
| System.Type[] |
types |
|
| System.Reflection.ParameterModifier[] |
modifiers |
|
Returns
| Type |
Description |
| System.Reflection.ConstructorInfo |
|
Overrides
System.Type.GetConstructorImpl(System.Reflection.BindingFlags, System.Reflection.Binder, System.Reflection.CallingConventions, System.Type[], System.Reflection.ParameterModifier[])
Declaration
public override ConstructorInfo[] GetConstructors(BindingFlags bindingAttr)
Parameters
| Type |
Name |
Description |
| System.Reflection.BindingFlags |
bindingAttr |
|
Returns
| Type |
Description |
| System.Reflection.ConstructorInfo[] |
|
Overrides
System.Type.GetConstructors(System.Reflection.BindingFlags)
Declaration
public override object[] GetCustomAttributes(bool inherit)
Parameters
| Type |
Name |
Description |
| System.Boolean |
inherit |
|
Returns
| Type |
Description |
| System.Object[] |
|
Overrides
System.Reflection.MemberInfo.GetCustomAttributes(System.Boolean)
Declaration
public override object[] GetCustomAttributes(Type attributeType, bool inherit)
Parameters
| Type |
Name |
Description |
| System.Type |
attributeType |
|
| System.Boolean |
inherit |
|
Returns
| Type |
Description |
| System.Object[] |
|
Overrides
System.Reflection.MemberInfo.GetCustomAttributes(System.Type, System.Boolean)
Declaration
public override Type GetElementType()
Returns
| Type |
Description |
| System.Type |
|
Overrides
System.Type.GetElementType()
Declaration
public override EventInfo GetEvent(string name, BindingFlags bindingAttr)
Parameters
| Type |
Name |
Description |
| System.String |
name |
|
| System.Reflection.BindingFlags |
bindingAttr |
|
Returns
| Type |
Description |
| System.Reflection.EventInfo |
|
Overrides
System.Type.GetEvent(System.String, System.Reflection.BindingFlags)
Declaration
public override EventInfo[] GetEvents(BindingFlags bindingAttr)
Parameters
| Type |
Name |
Description |
| System.Reflection.BindingFlags |
bindingAttr |
|
Returns
| Type |
Description |
| System.Reflection.EventInfo[] |
|
Overrides
System.Type.GetEvents(System.Reflection.BindingFlags)
Declaration
public override FieldInfo GetField(string name, BindingFlags bindingAttr)
Parameters
| Type |
Name |
Description |
| System.String |
name |
|
| System.Reflection.BindingFlags |
bindingAttr |
|
Returns
| Type |
Description |
| System.Reflection.FieldInfo |
|
Overrides
System.Type.GetField(System.String, System.Reflection.BindingFlags)
Declaration
public override FieldInfo[] GetFields(BindingFlags bindingAttr)
Parameters
| Type |
Name |
Description |
| System.Reflection.BindingFlags |
bindingAttr |
|
Returns
| Type |
Description |
| System.Reflection.FieldInfo[] |
|
Overrides
System.Type.GetFields(System.Reflection.BindingFlags)
Declaration
public override Type[] GetGenericArguments()
Returns
| Type |
Description |
| System.Type[] |
|
Overrides
System.Type.GetGenericArguments()
Declaration
public override Type[] GetGenericParameterConstraints()
Returns
| Type |
Description |
| System.Type[] |
|
Overrides
System.Type.GetGenericParameterConstraints()
Declaration
public override Type GetGenericTypeDefinition()
Returns
| Type |
Description |
| System.Type |
|
Overrides
System.Type.GetGenericTypeDefinition()
Declaration
public override Type GetInterface(string name, bool ignoreCase)
Parameters
| Type |
Name |
Description |
| System.String |
name |
|
| System.Boolean |
ignoreCase |
|
Returns
| Type |
Description |
| System.Type |
|
Overrides
System.Type.GetInterface(System.String, System.Boolean)
Declaration
public override Type[] GetInterfaces()
Returns
| Type |
Description |
| System.Type[] |
|
Overrides
System.Type.GetInterfaces()
Declaration
public override MemberInfo[] GetMembers(BindingFlags bindingAttr)
Parameters
| Type |
Name |
Description |
| System.Reflection.BindingFlags |
bindingAttr |
|
Returns
| Type |
Description |
| System.Reflection.MemberInfo[] |
|
Overrides
System.Type.GetMembers(System.Reflection.BindingFlags)
Declaration
protected override MethodInfo GetMethodImpl(string name, BindingFlags bindingAttr, Binder binder, CallingConventions callConvention, Type[] types, ParameterModifier[] modifiers)
Parameters
| Type |
Name |
Description |
| System.String |
name |
|
| System.Reflection.BindingFlags |
bindingAttr |
|
| System.Reflection.Binder |
binder |
|
| System.Reflection.CallingConventions |
callConvention |
|
| System.Type[] |
types |
|
| System.Reflection.ParameterModifier[] |
modifiers |
|
Returns
| Type |
Description |
| System.Reflection.MethodInfo |
|
Overrides
System.Type.GetMethodImpl(System.String, System.Reflection.BindingFlags, System.Reflection.Binder, System.Reflection.CallingConventions, System.Type[], System.Reflection.ParameterModifier[])
Declaration
public override MethodInfo[] GetMethods(BindingFlags bindingAttr)
Parameters
| Type |
Name |
Description |
| System.Reflection.BindingFlags |
bindingAttr |
|
Returns
| Type |
Description |
| System.Reflection.MethodInfo[] |
|
Overrides
System.Type.GetMethods(System.Reflection.BindingFlags)
Gets the custom modifier with the specified index
Declaration
public CustomModifier GetModifier(int index)
Parameters
| Type |
Name |
Description |
| System.Int32 |
index |
Index of the requested modifier
|
Returns
Exceptions
| Type |
Condition |
| System.ArgumentOutOfRangeException |
Index is negative or outside the bounds of the collection
|
Gets the array of custom modifiers associated with this type specification
Declaration
public CustomModifier[] GetModifiers()
Returns
Declaration
public override Type GetNestedType(string name, BindingFlags bindingAttr)
Parameters
| Type |
Name |
Description |
| System.String |
name |
|
| System.Reflection.BindingFlags |
bindingAttr |
|
Returns
| Type |
Description |
| System.Type |
|
Overrides
System.Type.GetNestedType(System.String, System.Reflection.BindingFlags)
Declaration
public override Type[] GetNestedTypes(BindingFlags bindingAttr)
Parameters
| Type |
Name |
Description |
| System.Reflection.BindingFlags |
bindingAttr |
|
Returns
| Type |
Description |
| System.Type[] |
|
Overrides
System.Type.GetNestedTypes(System.Reflection.BindingFlags)
Declaration
public override PropertyInfo[] GetProperties(BindingFlags bindingAttr)
Parameters
| Type |
Name |
Description |
| System.Reflection.BindingFlags |
bindingAttr |
|
Returns
| Type |
Description |
| System.Reflection.PropertyInfo[] |
|
Overrides
System.Type.GetProperties(System.Reflection.BindingFlags)
Declaration
protected override PropertyInfo GetPropertyImpl(string name, BindingFlags bindingAttr, Binder binder, Type returnType, Type[] types, ParameterModifier[] modifiers)
Parameters
| Type |
Name |
Description |
| System.String |
name |
|
| System.Reflection.BindingFlags |
bindingAttr |
|
| System.Reflection.Binder |
binder |
|
| System.Type |
returnType |
|
| System.Type[] |
types |
|
| System.Reflection.ParameterModifier[] |
modifiers |
|
Returns
| Type |
Description |
| System.Reflection.PropertyInfo |
|
Overrides
System.Type.GetPropertyImpl(System.String, System.Reflection.BindingFlags, System.Reflection.Binder, System.Type, System.Type[], System.Reflection.ParameterModifier[])
Declaration
protected override bool HasElementTypeImpl()
Returns
| Type |
Description |
| System.Boolean |
|
Overrides
System.Type.HasElementTypeImpl()
Declaration
public override object InvokeMember(string name, BindingFlags invokeAttr, Binder binder, object target, object[] args, ParameterModifier[] modifiers, CultureInfo culture, string[] namedParameters)
Parameters
| Type |
Name |
Description |
| System.String |
name |
|
| System.Reflection.BindingFlags |
invokeAttr |
|
| System.Reflection.Binder |
binder |
|
| System.Object |
target |
|
| System.Object[] |
args |
|
| System.Reflection.ParameterModifier[] |
modifiers |
|
| System.Globalization.CultureInfo |
culture |
|
| System.String[] |
namedParameters |
|
Returns
| Type |
Description |
| System.Object |
|
Overrides
System.Type.InvokeMember(System.String, System.Reflection.BindingFlags, System.Reflection.Binder, System.Object, System.Object[], System.Reflection.ParameterModifier[], System.Globalization.CultureInfo, System.String[])
Declaration
protected override bool IsArrayImpl()
Returns
| Type |
Description |
| System.Boolean |
|
Overrides
System.Type.IsArrayImpl()
Declaration
public override bool IsAssignableFrom(Type c)
Parameters
| Type |
Name |
Description |
| System.Type |
c |
|
Returns
| Type |
Description |
| System.Boolean |
|
Overrides
System.Type.IsAssignableFrom(System.Type)
Declaration
protected override bool IsByRefImpl()
Returns
| Type |
Description |
| System.Boolean |
|
Overrides
System.Type.IsByRefImpl()
Declaration
protected override bool IsCOMObjectImpl()
Returns
| Type |
Description |
| System.Boolean |
|
Overrides
System.Type.IsCOMObjectImpl()
Declaration
public override bool IsDefined(Type attributeType, bool inherit)
Parameters
| Type |
Name |
Description |
| System.Type |
attributeType |
|
| System.Boolean |
inherit |
|
Returns
| Type |
Description |
| System.Boolean |
|
Overrides
System.Reflection.MemberInfo.IsDefined(System.Type, System.Boolean)
Declaration
protected override bool IsPointerImpl()
Returns
| Type |
Description |
| System.Boolean |
|
Overrides
System.Type.IsPointerImpl()
Declaration
protected override bool IsPrimitiveImpl()
Returns
| Type |
Description |
| System.Boolean |
|
Overrides
System.Type.IsPrimitiveImpl()
Declaration
protected override bool IsValueTypeImpl()
Returns
| Type |
Description |
| System.Boolean |
|
Overrides
System.Type.IsValueTypeImpl()
Declaration
public override Type MakeArrayType()
Returns
| Type |
Description |
| System.Type |
|
Overrides
System.Type.MakeArrayType()
Declaration
public override Type MakeByRefType()
Returns
| Type |
Description |
| System.Type |
|
Overrides
System.Type.MakeByRefType()
Declaration
public override Type MakeGenericType(params Type[] typeArguments)
Parameters
| Type |
Name |
Description |
| System.Type[] |
typeArguments |
|
Returns
| Type |
Description |
| System.Type |
|
Overrides
System.Type.MakeGenericType(System.Type[])
Declaration
public override Type MakePointerType()
Returns
| Type |
Description |
| System.Type |
|
Overrides
System.Type.MakePointerType()
Reads TypeSpec object from the specified byte array
Declaration
public static TypeSpec ReadFromArray(byte[] data, ITokenResolver resolver, MemberInfo member)
Parameters
| Type |
Name |
Description |
| System.Byte[] |
data |
Byte array to read data from
|
| ITokenResolver |
resolver |
Object used to resolve metadata tokens
|
| System.Reflection.MemberInfo |
member |
Method that identifies generic context for generic method params, or null if this TypeSpec
does not belong to a generic method
|
Returns
ReadFromArray(Byte[], SignatureContext)
Reads TypeSpec object from the specified byte array using the specified signature context
Declaration
public static TypeSpec ReadFromArray(byte[] data, SignatureContext ctx)
Parameters
| Type |
Name |
Description |
| System.Byte[] |
data |
Byte array to read data from
|
| SignatureContext |
ctx |
The signature context
|
Returns
Exceptions
| Type |
Condition |
| System.ArgumentNullException |
Source array or signature context is null
|
| System.ArgumentException |
Source array is empty
|
Returns textual representation of this type specification as CIL code
Declaration
public override string ToString()
Returns
| Type |
Description |
| System.String |
|
Overrides
System.Type.ToString()
Explicit Interface Implementations
Declaration
object IReflectionInfo.GetReflectionProperty(int id)
Parameters
| Type |
Name |
Description |
| System.Int32 |
id |
|
Returns
| Type |
Description |
| System.Object |
|
Implements
System.Reflection.ICustomAttributeProvider
System.Runtime.InteropServices._MemberInfo
System.Runtime.InteropServices._Type
System.Reflection.IReflect
Extension Methods