Show / Hide Table of Contents

Class ReflectionProperties

Provides constants for reflection properties used with IReflectionInfo

Inheritance
System.Object
ReflectionProperties
Inherited Members
System.Object.ToString()
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
Namespace: CilTools.Reflection
Assembly: CilTools.BytecodeAnalysis.dll
Syntax
public static class ReflectionProperties

Fields

ContainingAssembly

Represents an assembly where the metadata element corresponding to the reflection object is stored. Only relevant for references (TypeRef or MethodRef), because for definitions containing assembly is the same as Assembly property value. (Type: Assembly)

Declaration
public const int ContainingAssembly = 116
Field Value
Type Description
System.Int32

CorFlags

Represents the PE image runtime flags (Type: int)

Declaration
public const int CorFlags = 105
Field Value
Type Description
System.Int32

ExplicitlyImplementedMethods

Represents interface methods implemented by this method, if this method is an explicit interface implementation. Otherwise, should be an empty array. (Type: MethodInfo[])

Declaration
public const int ExplicitlyImplementedMethods = 107
Field Value
Type Description
System.Int32

FieldOffset

Represents a field offset from the beginning of the structure, for structures with explicit layout. Returns -1 when field offset is not available. (Type: int)

Declaration
public const int FieldOffset = 112
Field Value
Type Description
System.Int32

FieldRva

Represents a Relative Virtual Address (RVA) of a field mapped to an executable image memory block. (Type: int)

Declaration
public const int FieldRva = 110
Field Value
Type Description
System.Int32

FileAlignment

Represents the PE image alignment factor, in bytes (Type: int)

Declaration
public const int FileAlignment = 102
Field Value
Type Description
System.Int32

ForwardedTypes

Represents an array of forwarded types. (Type: Type[])

Declaration
public const int ForwardedTypes = 114
Field Value
Type Description
System.Int32

ImageBase

Represents the preferred base address for the PE image (Type: ulong)

Declaration
public const int ImageBase = 101
Field Value
Type Description
System.Int32

InfoText

Represents the string containing information about object

Declaration
public const int InfoText = 1
Field Value
Type Description
System.Int32

IsStatic

Indicates whether the member is static (Type: bool)

Declaration
public const int IsStatic = 106
Field Value
Type Description
System.Int32

ReferencedModules

Represents the array of external modules referenced by assembly (Type: string[])

Declaration
public const int ReferencedModules = 100
Field Value
Type Description
System.Int32

ReferenceTarget

Represents a target member of reference (TypeRef or MethodRef). (Type: MemberInfo)

Declaration
public const int ReferenceTarget = 115
Field Value
Type Description
System.Int32

RvaFieldValue

Represents a byte array containing RVA field's value. (Type: byte[])

Declaration
public const int RvaFieldValue = 111
Field Value
Type Description
System.Int32

Signature

Represents a method signature. (Type: Signature)

Declaration
public const int Signature = 109
Field Value
Type Description
System.Int32

StackReserve

Represents the PE image reserved stack size, in bytes (Type: ulong)

Declaration
public const int StackReserve = 103
Field Value
Type Description
System.Int32

Subsystem

Represents the PE image subsystem (Type: int)

Declaration
public const int Subsystem = 104
Field Value
Type Description
System.Int32

VTableEntry

Represents the information about VTable entry associated with this method, or an empty string if the method does not have a VTable entry. (Type: string)

Declaration
public const int VTableEntry = 108
Field Value
Type Description
System.Int32

VTables

Represents an array of virtual function tables in the executable image. (Type: VTable[])

Declaration
public const int VTables = 113
Field Value
Type Description
System.Int32

Methods

Get(Object, Int32)

Gets the value of the reflection property with the specified Id from the specified object

Declaration
public static object Get(object obj, int id)
Parameters
Type Name Description
System.Object obj

Reflection object to get property

System.Int32 id

Property Id

Returns
Type Description
System.Object

The property value, or null if property is not supported

Back to top CIL Tools (published from sources in GitHub repository).
Generated by DocFX