C# 클래스 Patchwork.Engine.Utility.CecilLoader

Helper and extension methods for loading code elements from their Cecil metadata.
파일 보기 프로젝트 열기: GregRos/Patchwork

공개 메소드들

메소드 설명
LoadField ( this fieldDef ) : FieldInfo

Loads a Cecil.FieldDefinition as a System.FieldInfo. Requires loading the assembly.

LoadIntoMemory ( this def, bool reflectionOnly = false ) : Assembly

Loads a copy of the assembly from memory.

LoadLocalAssembly ( this assemblyDef ) : Assembly

Tries to load the assembly from disk by using its Cecil identifiers. Can fail, so don't use it often.

LoadMethod ( this methodDef ) : MethodBase

Converts a Cecil.MethodDefinition to a MethodBase. Also converts constructors. Requires loading the type and/or assembly.

LoadType ( this typeDef ) : Type

Loads a type using its Cecil definition. Involves loading the assembly from disk.

비공개 메소드들

메소드 설명
LoadMember ( this memberDef ) : MemberInfo

Loads the member from its IMemberDefinition.

LoadProperty ( this propDef ) : PropertyInfo

Loads the property from its Cecil metadata. Involves loading the assembly from disk.

메소드 상세

LoadField() 공개 정적인 메소드

Loads a Cecil.FieldDefinition as a System.FieldInfo. Requires loading the assembly.
Could not find the field.
public static LoadField ( this fieldDef ) : FieldInfo
fieldDef this The field definition.
리턴 System.Reflection.FieldInfo

LoadIntoMemory() 공개 정적인 메소드

Loads a copy of the assembly from memory.
public static LoadIntoMemory ( this def, bool reflectionOnly = false ) : Assembly
def this The definition.
reflectionOnly bool
리턴 System.Reflection.Assembly

LoadLocalAssembly() 공개 정적인 메소드

Tries to load the assembly from disk by using its Cecil identifiers. Can fail, so don't use it often.
Could not load the assembly from its Mono.Cecil definition.
public static LoadLocalAssembly ( this assemblyDef ) : Assembly
assemblyDef this The assembly definition.
리턴 System.Reflection.Assembly

LoadMethod() 공개 정적인 메소드

Converts a Cecil.MethodDefinition to a MethodBase. Also converts constructors. Requires loading the type and/or assembly.
No member matched the search criteria. Could not load the type or assembly. More than one member matched the search criteria.
public static LoadMethod ( this methodDef ) : MethodBase
methodDef this The method definition.
리턴 System.Reflection.MethodBase

LoadType() 공개 정적인 메소드

Loads a type using its Cecil definition. Involves loading the assembly from disk.
Could not find the type from its Mono.Cecil identifiers, or could not load the /// assembly.
public static LoadType ( this typeDef ) : Type
typeDef this The type definition.
리턴 System.Type