Class ClrAssemblyInfo
Represents an assembly in the external CLR instance
Inheritance
Implements
Inherited Members
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
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
FullName
Gets the display name of the assembly
Declaration
public override string FullName { get; }
Property Value
Type | Description |
---|---|
System.String |
Overrides
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
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
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 |
Overrides
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
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
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 |
Overrides
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
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
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
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 |
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.