Show / Hide Table of Contents

Class ClrAssemblyInfo

Represents an assembly in the external CLR instance

Inheritance
System.Object
System.Reflection.Assembly
ClrAssemblyInfo
Implements
System.Runtime.InteropServices._Assembly
System.Security.IEvidenceFactory
System.Reflection.ICustomAttributeProvider
System.Runtime.Serialization.ISerializable
ITokenResolver
Inherited Members
System.Reflection.Assembly.CreateQualifiedName(System.String, System.String)
System.Reflection.Assembly.GetAssembly(System.Type)
System.Reflection.Assembly.Equals(System.Object)
System.Reflection.Assembly.GetHashCode()
System.Reflection.Assembly.LoadFrom(System.String)
System.Reflection.Assembly.ReflectionOnlyLoadFrom(System.String)
System.Reflection.Assembly.LoadFrom(System.String, System.Security.Policy.Evidence)
System.Reflection.Assembly.LoadFrom(System.String, System.Security.Policy.Evidence, System.Byte[], System.Configuration.Assemblies.AssemblyHashAlgorithm)
System.Reflection.Assembly.LoadFrom(System.String, System.Byte[], System.Configuration.Assemblies.AssemblyHashAlgorithm)
System.Reflection.Assembly.UnsafeLoadFrom(System.String)
System.Reflection.Assembly.Load(System.String)
System.Reflection.Assembly.ReflectionOnlyLoad(System.String)
System.Reflection.Assembly.Load(System.String, System.Security.Policy.Evidence)
System.Reflection.Assembly.Load(System.Reflection.AssemblyName)
System.Reflection.Assembly.Load(System.Reflection.AssemblyName, System.Security.Policy.Evidence)
System.Reflection.Assembly.LoadWithPartialName(System.String)
System.Reflection.Assembly.LoadWithPartialName(System.String, System.Security.Policy.Evidence)
System.Reflection.Assembly.Load(System.Byte[])
System.Reflection.Assembly.ReflectionOnlyLoad(System.Byte[])
System.Reflection.Assembly.Load(System.Byte[], System.Byte[])
System.Reflection.Assembly.Load(System.Byte[], System.Byte[], System.Security.SecurityContextSource)
System.Reflection.Assembly.Load(System.Byte[], System.Byte[], System.Security.Policy.Evidence)
System.Reflection.Assembly.LoadFile(System.String)
System.Reflection.Assembly.LoadFile(System.String, System.Security.Policy.Evidence)
System.Reflection.Assembly.GetExecutingAssembly()
System.Reflection.Assembly.GetCallingAssembly()
System.Reflection.Assembly.GetEntryAssembly()
System.Reflection.Assembly.GetName(System.Boolean)
System.Reflection.Assembly.System.Runtime.InteropServices._Assembly.GetType()
System.Reflection.Assembly.GetManifestResourceStream(System.Type, System.String)
System.Reflection.Assembly.GetManifestResourceStream(System.String)
System.Reflection.Assembly.GetSatelliteAssembly(System.Globalization.CultureInfo)
System.Reflection.Assembly.GetSatelliteAssembly(System.Globalization.CultureInfo, System.Version)
System.Reflection.Assembly.GetObjectData(System.Runtime.Serialization.SerializationInfo, System.Runtime.Serialization.StreamingContext)
System.Reflection.Assembly.GetCustomAttributes(System.Boolean)
System.Reflection.Assembly.GetCustomAttributes(System.Type, System.Boolean)
System.Reflection.Assembly.IsDefined(System.Type, System.Boolean)
System.Reflection.Assembly.GetCustomAttributesData()
System.Reflection.Assembly.LoadModule(System.String, System.Byte[])
System.Reflection.Assembly.LoadModule(System.String, System.Byte[], System.Byte[])
System.Reflection.Assembly.CreateInstance(System.String)
System.Reflection.Assembly.CreateInstance(System.String, System.Boolean)
System.Reflection.Assembly.CreateInstance(System.String, System.Boolean, System.Reflection.BindingFlags, System.Reflection.Binder, System.Object[], System.Globalization.CultureInfo, System.Object[])
System.Reflection.Assembly.GetLoadedModules()
System.Reflection.Assembly.GetLoadedModules(System.Boolean)
System.Reflection.Assembly.GetModules()
System.Reflection.Assembly.GetModules(System.Boolean)
System.Reflection.Assembly.GetModule(System.String)
System.Reflection.Assembly.GetFile(System.String)
System.Reflection.Assembly.GetFiles()
System.Reflection.Assembly.GetFiles(System.Boolean)
System.Reflection.Assembly.GetManifestResourceNames()
System.Reflection.Assembly.GetReferencedAssemblies()
System.Reflection.Assembly.GetManifestResourceInfo(System.String)
System.Reflection.Assembly.ToString()
System.Reflection.Assembly.EscapedCodeBase
System.Reflection.Assembly.EntryPoint
System.Reflection.Assembly.DefinedTypes
System.Reflection.Assembly.Evidence
System.Reflection.Assembly.PermissionSet
System.Reflection.Assembly.IsFullyTrusted
System.Reflection.Assembly.SecurityRuleSet
System.Reflection.Assembly.ManifestModule
System.Reflection.Assembly.CustomAttributes
System.Reflection.Assembly.Modules
System.Reflection.Assembly.ImageRuntimeVersion
System.Reflection.Assembly.GlobalAssemblyCache
System.Reflection.Assembly.HostContext
System.Reflection.Assembly.ModuleResolve
System.Object.Equals(System.Object, System.Object)
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.GetType()
System.Object.MemberwiseClone()
Namespace: CilTools.Runtime
Assembly: CilTools.Runtime.dll
Syntax
public class ClrAssemblyInfo : Assembly, _Assembly, IEvidenceFactory, ICustomAttributeProvider, ISerializable, ITokenResolver

Properties

AssemblyReader

Gets the assembly reader that was used to read this instance

Declaration
public ClrAssemblyReader AssemblyReader { get; }
Property Value
Type Description
ClrAssemblyReader

CodeBase

Gets the full path to the PE file containing this assembly, or an empty string if the assembly wasn't loaded from file.

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

ExportedTypes

Gets a collection of the public types defined in this assembly that are visible outside the assembly.

Declaration
public override IEnumerable<Type> ExportedTypes { get; }
Property Value
Type Description
System.Collections.Generic.IEnumerable<System.Type>
Overrides
System.Reflection.Assembly.ExportedTypes

FullName

Gets the display name of the assembly

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

InnerModule

Gets the underlying ClrMD module object

Declaration
public ClrModule InnerModule { get; }
Property Value
Type Description
Microsoft.Diagnostics.Runtime.ClrModule

IsDynamic

Gets a value that indicates whether the current assembly was generated dynamically at runtime by using reflection emit.

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

Location

Gets the full path to the PE file containing this assembly, or an empty string if the assembly wasn't loaded from file.

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

ReflectionOnly

Gets a boolean value indicating whether this assembly was loaded into the reflection-only context.

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

This implementation always returns true

Overrides
System.Reflection.Assembly.ReflectionOnly

Methods

EnumerateMembers()

Gets the collection of all members defined in this assembly

Declaration
public IEnumerable<MemberInfo> EnumerateMembers()
Returns
Type Description
System.Collections.Generic.IEnumerable<System.Reflection.MemberInfo>

EnumerateMethods()

Gets the collection of all methods defined in this assembly

Declaration
public IEnumerable<MethodBase> EnumerateMethods()
Returns
Type Description
System.Collections.Generic.IEnumerable<System.Reflection.MethodBase>

GetExportedTypes()

Gets the public types defined in this assembly that are visible outside the assembly.

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

An array that represents the types defined in this assembly that are visible outside the assembly.

Overrides
System.Reflection.Assembly.GetExportedTypes()

GetName()

Gets an AssemblyName for this assembly

Declaration
public override AssemblyName GetName()
Returns
Type Description
System.Reflection.AssemblyName

An object that contains the fully parsed display name for this assembly

Overrides
System.Reflection.Assembly.GetName()

GetType(String)

Gets the Type object that represents the specified type.

Declaration
public override Type GetType(string name)
Parameters
Type Name Description
System.String name

The full name of the type.

Returns
Type Description
System.Type

An object that represents the specified type, or null if the type is not found.

Overrides
System.Reflection.Assembly.GetType(System.String)

GetType(String, Boolean)

Gets the Type object with the specified name in the assembly instance and optionally throws an exception if the type is not found.

Declaration
public override Type GetType(string name, bool throwOnError)
Parameters
Type Name Description
System.String name

The full name of the type.

System.Boolean throwOnError

true to throw an exception if the type is not found; false to return null.

Returns
Type Description
System.Type

An object that represents the specified type.

Overrides
System.Reflection.Assembly.GetType(System.String, System.Boolean)

GetType(String, Boolean, Boolean)

Gets the Type object with the specified name in the assembly instance, with the options of ignoring the case, and of throwing an exception if the type is not found.

Declaration
public override Type GetType(string name, bool throwOnError, bool ignoreCase)
Parameters
Type Name Description
System.String name

The full name of the type.

System.Boolean throwOnError

true to throw an exception if the type is not found; false to return null.

System.Boolean ignoreCase

true to ignore the case of the type name; otherwise, false.

Returns
Type Description
System.Type

An object that represents the specified type.

Overrides
System.Reflection.Assembly.GetType(System.String, System.Boolean, System.Boolean)

GetTypes()

Gets the types defined in this assembly.

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

An array that contains all the types that are defined in this assembly.

Overrides
System.Reflection.Assembly.GetTypes()

ResolveField(Int32)

Returns the field identified by the specified metadata token.

Declaration
public FieldInfo ResolveField(int metadataToken)
Parameters
Type Name Description
System.Int32 metadataToken
Returns
Type Description
System.Reflection.FieldInfo

ResolveField(Int32, Type[], Type[])

Returns the field identified by the specified metadata token, in the context defined by the specified generic parameters.

Declaration
public FieldInfo ResolveField(int metadataToken, Type[] genericTypeArguments, Type[] genericMethodArguments)
Parameters
Type Name Description
System.Int32 metadataToken
System.Type[] genericTypeArguments
System.Type[] genericMethodArguments
Returns
Type Description
System.Reflection.FieldInfo
Remarks

Generic parameters are ignored in this implementation.

ResolveMember(Int32)

Returns the type or member identified by the specified metadata token.

Declaration
public MemberInfo ResolveMember(int metadataToken)
Parameters
Type Name Description
System.Int32 metadataToken
Returns
Type Description
System.Reflection.MemberInfo

ResolveMember(Int32, Type[], Type[])

Returns the type or member identified by the specified metadata token, in the context defined by the specified generic parameters.

Declaration
public MemberInfo ResolveMember(int metadataToken, Type[] genericTypeArguments, Type[] genericMethodArguments)
Parameters
Type Name Description
System.Int32 metadataToken
System.Type[] genericTypeArguments
System.Type[] genericMethodArguments
Returns
Type Description
System.Reflection.MemberInfo
Remarks

Generic parameters are ignored in this implementation.

ResolveMethod(Int32)

Returns the method or constructor identified by the specified metadata token.

Declaration
public MethodBase ResolveMethod(int metadataToken)
Parameters
Type Name Description
System.Int32 metadataToken
Returns
Type Description
System.Reflection.MethodBase

ResolveMethod(Int32, Type[], Type[])

Returns the method or constructor identified by the specified metadata token, in the context defined by the specified generic parameters.

Declaration
public MethodBase ResolveMethod(int metadataToken, Type[] genericTypeArguments, Type[] genericMethodArguments)
Parameters
Type Name Description
System.Int32 metadataToken
System.Type[] genericTypeArguments
System.Type[] genericMethodArguments
Returns
Type Description
System.Reflection.MethodBase
Remarks

Generic parameters are ignored in this implementation.

ResolveSignature(Int32)

Returns the signature blob identified by a metadata token (not implemented).

Declaration
public byte[] ResolveSignature(int metadataToken)
Parameters
Type Name Description
System.Int32 metadataToken
Returns
Type Description
System.Byte[]

An array of bytes representing the signature blob.

Exceptions
Type Condition
System.NotImplementedException

This implementation always throws

ResolveString(Int32)

Returns the string identified by the specified metadata token (not implemented).

Declaration
public string ResolveString(int metadataToken)
Parameters
Type Name Description
System.Int32 metadataToken
Returns
Type Description
System.String

This implementation always returns null

ResolveType(Int32)

Returns the type identified by the specified metadata token.

Declaration
public Type ResolveType(int metadataToken)
Parameters
Type Name Description
System.Int32 metadataToken
Returns
Type Description
System.Type

ResolveType(Int32, Type[], Type[])

Returns the type identified by the specified metadata token, in the context defined by the specified generic parameters.

Declaration
public Type ResolveType(int metadataToken, Type[] genericTypeArguments, Type[] genericMethodArguments)
Parameters
Type Name Description
System.Int32 metadataToken
System.Type[] genericTypeArguments
System.Type[] genericMethodArguments
Returns
Type Description
System.Type
Remarks

Generic parameters are ignored in this implementation.

Implements

System.Runtime.InteropServices._Assembly
System.Security.IEvidenceFactory
System.Reflection.ICustomAttributeProvider
System.Runtime.Serialization.ISerializable
ITokenResolver

Extension Methods

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