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

Helper methods (mainly extension methods) for working with Cecil and .NET reflection classes. Some are publically visible.
파일 보기 프로젝트 열기: GregRos/Patchwork

공개 프로퍼티들

프로퍼티 타입 설명
PatchworkMetadataString string

공개 메소드들

메소드 설명
Clone ( this definition ) : AssemblyDefinition

Returns a reloaded clone of the assembly by serializing it and loading it from memory.

CloneReference ( this methodDef ) : FieldReference

Returns another reference to the same field.

CloneReference ( this methodRef ) : MethodReference

Creates another refernece to the same method.

GetAssemblyMetadataString ( this assembly ) : string

Returns a human-readable metadata string that describes the specified Cecil assembly definition.

SerializeAssembly ( this definition ) : byte[]

Serializes the assembly by writing it into a memory stream.

SetAccessibility ( this method, Accessibility newAccessibility ) : void

Sets the accessibility attributes of this member to the desired C#-like accessibility.

비공개 메소드들

메소드 설명
GetAccessbility ( this memberDef ) : Accessibility

Gets the C#-like accessbility of this member.

GetAccessibilityDynamic ( dynamic whatever ) : Accessibility
GetAssemblyMetadataString ( string fullName, string path ) : string

Returns the metadata string that describes the assembly in the specified location, expected to have the specified full name.

SetAccessibilityDynamic ( dynamic whatever, Accessibility newAccessibility ) : void

메소드 상세

Clone() 공개 정적인 메소드

Returns a reloaded clone of the assembly by serializing it and loading it from memory.
public static Clone ( this definition ) : AssemblyDefinition
definition this The assembly definition.
리턴 Mono.Cecil.AssemblyDefinition

CloneReference() 공개 정적인 메소드

Returns another reference to the same field.
public static CloneReference ( this methodDef ) : FieldReference
methodDef this The field reference.
리턴 Mono.Cecil.FieldReference

CloneReference() 공개 정적인 메소드

Creates another refernece to the same method.
public static CloneReference ( this methodRef ) : MethodReference
methodRef this The method reference.
리턴 Mono.Cecil.MethodReference

GetAssemblyMetadataString() 공개 정적인 메소드

Returns a human-readable metadata string that describes the specified Cecil assembly definition.
public static GetAssemblyMetadataString ( this assembly ) : string
assembly this The assembly.
리턴 string

SerializeAssembly() 공개 정적인 메소드

Serializes the assembly by writing it into a memory stream.
public static SerializeAssembly ( this definition ) : byte[]
definition this The assembly definition.
리턴 byte[]

SetAccessibility() 공개 정적인 메소드

Sets the accessibility attributes of this member to the desired C#-like accessibility.
public static SetAccessibility ( this method, Accessibility newAccessibility ) : void
method this The method.
newAccessibility Accessibility The new accessibility.
리턴 void

프로퍼티 상세

PatchworkMetadataString 공개적으로 정적으로 프로퍼티

Contains the metadata string of the executing Patchwork.Engine assembly, as determined by the GetAssemblyMetadataString(Mono.Cecil.AssemblyDefinition) method.
public static string PatchworkMetadataString
리턴 string