Show / Hide Table of Contents

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
ITypeInfo
IReflectionInfo
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()
Namespace: CilTools.BytecodeAnalysis
Assembly: CilTools.BytecodeAnalysis.dll
Syntax
public class TypeSpec : Type, ICustomAttributeProvider, _MemberInfo, _Type, IReflect, ITypeInfo, IReflectionInfo

Properties

Assembly

Declaration
public override Assembly Assembly { get; }
Property Value
Type Description
System.Reflection.Assembly
Overrides
System.Type.Assembly

AssemblyQualifiedName

Declaration
public override string AssemblyQualifiedName { get; }
Property Value
Type Description
System.String
Overrides
System.Type.AssemblyQualifiedName

BaseType

Declaration
public override Type BaseType { get; }
Property Value
Type Description
System.Type
Overrides
System.Type.BaseType

DeclaringMethod

Declaration
public override MethodBase DeclaringMethod { get; }
Property Value
Type Description
System.Reflection.MethodBase
Overrides
System.Type.DeclaringMethod

DeclaringType

Declaration
public override Type DeclaringType { get; }
Property Value
Type Description
System.Type
Overrides
System.Type.DeclaringType

ElementType

Gets the element type of this type specification

Declaration
public ElementType ElementType { get; }
Property Value
Type Description
ElementType

FullName

Declaration
public override string FullName { get; }
Property Value
Type Description
System.String
Overrides
System.Type.FullName

GenericParameterAttributes

Declaration
public override GenericParameterAttributes GenericParameterAttributes { get; }
Property Value
Type Description
System.Reflection.GenericParameterAttributes
Overrides
System.Type.GenericParameterAttributes

GenericParameterPosition

Declaration
public override int GenericParameterPosition { get; }
Property Value
Type Description
System.Int32
Overrides
System.Type.GenericParameterPosition

GUID

Declaration
public override Guid GUID { get; }
Property Value
Type Description
System.Guid
Overrides
System.Type.GUID

InnerTypeSpec

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
Type Description
TypeSpec

IsFunctionPointer

Gets a value indicating whether this TypeSpec represents a function pointer

Declaration
public bool IsFunctionPointer { get; }
Property Value
Type Description
System.Boolean

IsGenericParameter

Declaration
public override bool IsGenericParameter { get; }
Property Value
Type Description
System.Boolean
Overrides
System.Type.IsGenericParameter

IsGenericType

Declaration
public override bool IsGenericType { get; }
Property Value
Type Description
System.Boolean
Overrides
System.Type.IsGenericType

IsGenericTypeDefinition

Declaration
public override bool IsGenericTypeDefinition { get; }
Property Value
Type Description
System.Boolean
Overrides
System.Type.IsGenericTypeDefinition

IsPinned

Gets the value indicating whether this TypeSpec represents pinned local variable

Declaration
public bool IsPinned { get; }
Property Value
Type Description
System.Boolean

MetadataToken

Declaration
public override int MetadataToken { get; }
Property Value
Type Description
System.Int32
Overrides
System.Reflection.MemberInfo.MetadataToken

Modifiers

Enumerates custom modifiers associated with this type specification

Declaration
public IEnumerable<CustomModifier> Modifiers { get; }
Property Value
Type Description
System.Collections.Generic.IEnumerable<CustomModifier>

ModifiersCount

Gets the amount of custom modifiers associated with this type specification

Declaration
public int ModifiersCount { get; }
Property Value
Type Description
System.Int32

Module

Declaration
public override Module Module { get; }
Property Value
Type Description
System.Reflection.Module
Overrides
System.Type.Module

Name

Declaration
public override string Name { get; }
Property Value
Type Description
System.String
Overrides
System.Reflection.MemberInfo.Name

Namespace

Declaration
public override string Namespace { get; }
Property Value
Type Description
System.String
Overrides
System.Type.Namespace

StructLayoutAttribute

Declaration
public override StructLayoutAttribute StructLayoutAttribute { get; }
Property Value
Type Description
System.Runtime.InteropServices.StructLayoutAttribute
Overrides
System.Type.StructLayoutAttribute

TargetSignature

Gets the target function signature, if this TypeSpec represents a function pointer. Otherwise, returns null.

Declaration
public Signature TargetSignature { get; }
Property Value
Type Description
Signature

Type

Gets the type which this type specification represents (deprecated)

Declaration
public Type Type { get; }
Property Value
Type Description
System.Type
Remarks

Starting from the version 2.1, the TypeSpec itself extends System.Type, so this property is not needed. Use this object directly when you need an instance of System.Type, or the UnderlyingSystemType property if you need the runtime type. This property will be removed in future releases.

UnderlyingSystemType

Declaration
public override Type UnderlyingSystemType { get; }
Property Value
Type Description
System.Type
Overrides
System.Type.UnderlyingSystemType

Methods

CreateSpecialType(ElementType)

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
Type Description
TypeSpec
Remarks

The returned TypeSpec references a special type from current runtime's CoreLib. Passed element type must represent a special type (Class, ValueType, etc. are not valid).

Exceptions
Type Condition
System.ArgumentException

The specified element type does not represent a special type

GetArrayRank()

Declaration
public override int GetArrayRank()
Returns
Type Description
System.Int32
Overrides
System.Type.GetArrayRank()

GetAttributeFlagsImpl()

Declaration
protected override TypeAttributes GetAttributeFlagsImpl()
Returns
Type Description
System.Reflection.TypeAttributes
Overrides
System.Type.GetAttributeFlagsImpl()

GetConstructorImpl(BindingFlags, Binder, CallingConventions, Type[], ParameterModifier[])

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[])

GetConstructors(BindingFlags)

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)

GetCustomAttributes(Boolean)

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)

GetCustomAttributes(Type, 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)

GetElementType()

Declaration
public override Type GetElementType()
Returns
Type Description
System.Type
Overrides
System.Type.GetElementType()

GetEvent(String, BindingFlags)

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)

GetEvents(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)

GetField(String, 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)

GetFields(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)

GetGenericArguments()

Declaration
public override Type[] GetGenericArguments()
Returns
Type Description
System.Type[]
Overrides
System.Type.GetGenericArguments()

GetGenericParameterConstraints()

Declaration
public override Type[] GetGenericParameterConstraints()
Returns
Type Description
System.Type[]
Overrides
System.Type.GetGenericParameterConstraints()

GetGenericTypeDefinition()

Declaration
public override Type GetGenericTypeDefinition()
Returns
Type Description
System.Type
Overrides
System.Type.GetGenericTypeDefinition()

GetInterface(String, Boolean)

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)

GetInterfaces()

Declaration
public override Type[] GetInterfaces()
Returns
Type Description
System.Type[]
Overrides
System.Type.GetInterfaces()

GetMembers(BindingFlags)

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)

GetMethodImpl(String, BindingFlags, Binder, CallingConventions, Type[], ParameterModifier[])

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[])

GetMethods(BindingFlags)

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)

GetModifier(Int32)

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
Type Description
CustomModifier

The requested custom modifier

Exceptions
Type Condition
System.ArgumentOutOfRangeException

Index is negative or outside the bounds of the collection

GetModifiers()

Gets the array of custom modifiers associated with this type specification

Declaration
public CustomModifier[] GetModifiers()
Returns
Type Description
CustomModifier[]

The array of custom modifiers

GetNestedType(String, BindingFlags)

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)

GetNestedTypes(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)

GetProperties(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)

GetPropertyImpl(String, BindingFlags, Binder, Type, Type[], ParameterModifier[])

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[])

HasElementTypeImpl()

Declaration
protected override bool HasElementTypeImpl()
Returns
Type Description
System.Boolean
Overrides
System.Type.HasElementTypeImpl()

InvokeMember(String, BindingFlags, Binder, Object, Object[], ParameterModifier[], CultureInfo, String[])

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[])

IsArrayImpl()

Declaration
protected override bool IsArrayImpl()
Returns
Type Description
System.Boolean
Overrides
System.Type.IsArrayImpl()

IsAssignableFrom(Type)

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)

IsByRefImpl()

Declaration
protected override bool IsByRefImpl()
Returns
Type Description
System.Boolean
Overrides
System.Type.IsByRefImpl()

IsCOMObjectImpl()

Declaration
protected override bool IsCOMObjectImpl()
Returns
Type Description
System.Boolean
Overrides
System.Type.IsCOMObjectImpl()

IsDefined(Type, Boolean)

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)

IsPointerImpl()

Declaration
protected override bool IsPointerImpl()
Returns
Type Description
System.Boolean
Overrides
System.Type.IsPointerImpl()

IsPrimitiveImpl()

Declaration
protected override bool IsPrimitiveImpl()
Returns
Type Description
System.Boolean
Overrides
System.Type.IsPrimitiveImpl()

IsValueTypeImpl()

Declaration
protected override bool IsValueTypeImpl()
Returns
Type Description
System.Boolean
Overrides
System.Type.IsValueTypeImpl()

MakeArrayType()

Declaration
public override Type MakeArrayType()
Returns
Type Description
System.Type
Overrides
System.Type.MakeArrayType()

MakeByRefType()

Declaration
public override Type MakeByRefType()
Returns
Type Description
System.Type
Overrides
System.Type.MakeByRefType()

MakeGenericType(Type[])

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[])

MakePointerType()

Declaration
public override Type MakePointerType()
Returns
Type Description
System.Type
Overrides
System.Type.MakePointerType()

ReadFromArray(Byte[], ITokenResolver, MemberInfo)

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
Type Description
TypeSpec

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
Type Description
TypeSpec
Remarks

A signature context encapsulates a token resolver and a generic context. Generic context is only used when reading generic parameters.

Exceptions
Type Condition
System.ArgumentNullException

Source array or signature context is null

System.ArgumentException

Source array is empty

ToString()

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

IReflectionInfo.GetReflectionProperty(Int32)

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
ITypeInfo
IReflectionInfo

Extension Methods

CilExtensions.GetReferencedMethods(Type)
CilExtensions.GetReferencedMembers(Type)
CilExtensions.GetReferencedMembers(Type, MemberCriteria)
Back to top CIL Tools (published from sources in GitHub repository).
Generated by DocFX