C# 클래스 OTAPI.Patcher.Engine.Extensions.CecilHelpers

파일 보기 프로젝트 열기: DeathCradle/Open-Terraria-API

공개 메소드들

메소드 설명
CompareParameterTypes ( this source, IEnumerable parameters, bool acceptParamObjectTypes = false, bool substituteByRefs = false ) : bool
Constructor ( this type ) : Mono.Cecil.MethodDefinition

Returns the default constructor, expecting only one in the type.

Field ( this typeDefinition, string name ) : FieldDefinition
ForEachInstruction ( this module, Mono.Cecil.Cil.Instruction>.Action callback ) : void

Enumerates all instructions in all methods across each type of the assembly

ForEachMethod ( this module, Action callback ) : void

Enumerates all methods in the current module

ForEachNestedType ( this parent, Action callback ) : void
ForEachType ( this module, Action callback ) : void

Enumerates over each type in the assembly, including nested types

Method ( this typeDefinition, string name, Collection parameters, bool isStatic = null, int skipMethodParameters, int skipInputParameters, bool acceptParamObjectTypes = false, bool substituteByRefs = false ) : Mono.Cecil.MethodDefinition
Method ( this typeDefinition, string name, System parameters, bool isStatic = null, int skipMethodParameters, int skipInputParameters, bool acceptParamObjectTypes = false, bool substituteByRefs = false ) : Mono.Cecil.MethodDefinition
Method ( this typeDefinition, string name, bool isStatic = null, ParameterTypeCollection parameters = null, int skipMethodParameters, int skipInputParameters, bool acceptParamObjectTypes = false, bool substituteByRefs = false ) : Mono.Cecil.MethodDefinition
NestedType ( this typeDefinition, string name ) : Mono.Cecil.TypeDefinition
Next ( this initial, Boolean>.Func predicate ) : Instruction
Next ( this initial, int count = -1 ) : List
Previous ( this initial, Boolean>.Func predicate ) : Instruction
Previous ( this initial, int count ) : Instruction
Property ( this typeDefinition, string name ) : Mono.Cecil.PropertyDefinition
SignatureMatches ( this method, Mono.Cecil.MethodDefinition compareTo, bool ignoreDeclaringType = true ) : bool
SignatureMatches ( this type, Mono.Cecil.TypeDefinition compareTo ) : bool
StaticConstructor ( this type ) : Mono.Cecil.MethodDefinition

Returns the static constructor of the type, if any

Type ( this moduleDefinition, string fullName ) : Mono.Cecil.TypeDefinition

Returns a type from the current module by its fullName

TypeDefinition ( this type, AssemblyDefinition definition ) : Mono.Cecil.TypeDefinition

메소드 상세

CompareParameterTypes() 공개 정적인 메소드

public static CompareParameterTypes ( this source, IEnumerable parameters, bool acceptParamObjectTypes = false, bool substituteByRefs = false ) : bool
source this
parameters IEnumerable
acceptParamObjectTypes bool
substituteByRefs bool
리턴 bool

Constructor() 공개 정적인 메소드

Returns the default constructor, expecting only one in the type.
public static Constructor ( this type ) : Mono.Cecil.MethodDefinition
type this
리턴 Mono.Cecil.MethodDefinition

Field() 공개 정적인 메소드

public static Field ( this typeDefinition, string name ) : FieldDefinition
typeDefinition this
name string
리턴 Mono.Cecil.FieldDefinition

ForEachInstruction() 공개 정적인 메소드

Enumerates all instructions in all methods across each type of the assembly
public static ForEachInstruction ( this module, Mono.Cecil.Cil.Instruction>.Action callback ) : void
module this
callback Mono.Cecil.Cil.Instruction>.Action
리턴 void

ForEachMethod() 공개 정적인 메소드

Enumerates all methods in the current module
public static ForEachMethod ( this module, Action callback ) : void
module this
callback Action
리턴 void

ForEachNestedType() 공개 정적인 메소드

public static ForEachNestedType ( this parent, Action callback ) : void
parent this
callback Action
리턴 void

ForEachType() 공개 정적인 메소드

Enumerates over each type in the assembly, including nested types
public static ForEachType ( this module, Action callback ) : void
module this
callback Action
리턴 void

Method() 공개 정적인 메소드

public static Method ( this typeDefinition, string name, Collection parameters, bool isStatic = null, int skipMethodParameters, int skipInputParameters, bool acceptParamObjectTypes = false, bool substituteByRefs = false ) : Mono.Cecil.MethodDefinition
typeDefinition this
name string
parameters Collection
isStatic bool
skipMethodParameters int
skipInputParameters int
acceptParamObjectTypes bool
substituteByRefs bool
리턴 Mono.Cecil.MethodDefinition

Method() 공개 정적인 메소드

public static Method ( this typeDefinition, string name, System parameters, bool isStatic = null, int skipMethodParameters, int skipInputParameters, bool acceptParamObjectTypes = false, bool substituteByRefs = false ) : Mono.Cecil.MethodDefinition
typeDefinition this
name string
parameters System
isStatic bool
skipMethodParameters int
skipInputParameters int
acceptParamObjectTypes bool
substituteByRefs bool
리턴 Mono.Cecil.MethodDefinition

Method() 공개 정적인 메소드

public static Method ( this typeDefinition, string name, bool isStatic = null, ParameterTypeCollection parameters = null, int skipMethodParameters, int skipInputParameters, bool acceptParamObjectTypes = false, bool substituteByRefs = false ) : Mono.Cecil.MethodDefinition
typeDefinition this
name string
isStatic bool
parameters ParameterTypeCollection
skipMethodParameters int
skipInputParameters int
acceptParamObjectTypes bool
substituteByRefs bool
리턴 Mono.Cecil.MethodDefinition

NestedType() 공개 정적인 메소드

public static NestedType ( this typeDefinition, string name ) : Mono.Cecil.TypeDefinition
typeDefinition this
name string
리턴 Mono.Cecil.TypeDefinition

Next() 공개 정적인 메소드

public static Next ( this initial, Boolean>.Func predicate ) : Instruction
initial this
predicate Boolean>.Func
리턴 Instruction

Next() 공개 정적인 메소드

public static Next ( this initial, int count = -1 ) : List
initial this
count int
리턴 List

Previous() 공개 정적인 메소드

public static Previous ( this initial, Boolean>.Func predicate ) : Instruction
initial this
predicate Boolean>.Func
리턴 Instruction

Previous() 공개 정적인 메소드

public static Previous ( this initial, int count ) : Instruction
initial this
count int
리턴 Instruction

Property() 공개 정적인 메소드

public static Property ( this typeDefinition, string name ) : Mono.Cecil.PropertyDefinition
typeDefinition this
name string
리턴 Mono.Cecil.PropertyDefinition

SignatureMatches() 공개 정적인 메소드

public static SignatureMatches ( this method, Mono.Cecil.MethodDefinition compareTo, bool ignoreDeclaringType = true ) : bool
method this
compareTo Mono.Cecil.MethodDefinition
ignoreDeclaringType bool
리턴 bool

SignatureMatches() 공개 정적인 메소드

public static SignatureMatches ( this type, Mono.Cecil.TypeDefinition compareTo ) : bool
type this
compareTo Mono.Cecil.TypeDefinition
리턴 bool

StaticConstructor() 공개 정적인 메소드

Returns the static constructor of the type, if any
public static StaticConstructor ( this type ) : Mono.Cecil.MethodDefinition
type this
리턴 Mono.Cecil.MethodDefinition

Type() 공개 정적인 메소드

Returns a type from the current module by its fullName
public static Type ( this moduleDefinition, string fullName ) : Mono.Cecil.TypeDefinition
moduleDefinition this
fullName string
리턴 Mono.Cecil.TypeDefinition

TypeDefinition() 공개 정적인 메소드

public static TypeDefinition ( this type, AssemblyDefinition definition ) : Mono.Cecil.TypeDefinition
type this
definition Mono.Cecil.AssemblyDefinition
리턴 Mono.Cecil.TypeDefinition