C# Класс Catel.Fody.CecilExtensions

Показать файл Открыть проект

Открытые методы

Метод Описание
Constructor ( this typeDefinition, bool isStatic ) : Mono.Cecil.MethodDefinition
ContainsAttribute ( this attributes, string attributeName ) : bool
FindConstructor ( this typeReference, List types ) : MethodReference
FindType ( this moduleDefinition, string assemblyName, string typeName ) : Mono.Cecil.TypeDefinition
GetAllTypeDefinitions ( this moduleDefinition ) : List
GetAttribute ( Collection customAttributes, string attributeName ) : CustomAttribute
GetAttribute ( this typeDefinition, string attributeName ) : CustomAttribute
GetAttribute ( this attributes, string attributeName ) : CustomAttribute
GetAttributes ( Collection customAttributes, string attributeName ) : IEnumerable
GetAttributes ( this typeDefinition, string attributeName ) : IEnumerable
GetBaseTypes ( this type, bool includeIfaces ) : IEnumerable
GetFirstSequencePoint ( this method ) : SequencePoint
GetFullName ( this member ) : string
GetGeneric ( this definition ) : FieldReference
GetGeneric ( this reference ) : MethodReference
GetMethod ( this module, string methodName ) : MethodReference
GetMethodAndImport ( this module, string methodName ) : MethodReference
GetMethodReference ( this methodDefinition, Stack typeDefinitions ) : MethodReference
GetName ( this propertyDefinition ) : string
GetNullableValueType ( this typeReference ) : TypeReference
GetProperty ( this typeReference, string propertyName ) : PropertyReference
Import ( this typeReference, bool checkForNullableValueTypes = false ) : TypeReference
IsBoxingRequired ( this typeReference, TypeReference expectedType ) : bool
IsCall ( this opCode ) : bool
IsDecoratedWithAttribute ( Collection customAttributes, string attributeName ) : bool
IsDecoratedWithAttribute ( this typeDefinition, string attributeName ) : bool
IsMarkedAsGeneratedCode ( this type ) : bool
IsNullableValueType ( this typeReference ) : bool
MakeGeneric ( this field, TypeReference declaringType ) : FieldReference
MakeGeneric ( this method, TypeReference declaringType ) : MethodReference
MakeGenericIfRequired ( this typeReference ) : TypeReference
MakeHostInstanceGeneric ( this self ) : MethodReference
MarkAsCompilerGenerated ( this type, MsCoreReferenceFinder msCoreReferenceFinder ) : void
RemoveAttribute ( Collection customAttributes, string attributeName ) : void
RemoveAttribute ( this typeDefinition, string attributeName ) : void
ResolveAssembly ( this moduleDefinition, string assemblyName ) : AssemblyDefinition

Приватные методы

Метод Описание
BuildIFaces ( Mono.Cecil.TypeDefinition type, TypeReference>.IDictionary genericArgsMap ) : IEnumerable
ContainsAttribute ( Collection customAttributes, string attributeTypeName ) : bool
CreateDebuggerNonUserCodeAttribute ( MsCoreReferenceFinder msCoreReferenceFinder, Mono.Cecil.ModuleDefinition importingModule ) : CustomAttribute
CreateGeneratedCodeAttribute ( MsCoreReferenceFinder msCoreReferenceFinder, Mono.Cecil.ModuleDefinition importingModule ) : CustomAttribute
GetGenericArgsMap ( TypeReference type, TypeReference>.IDictionary superTypeMap, IList mappedFromSuperType ) : TypeReference>.IDictionary
GetTypes ( IEnumerable typeDefinitions, List definitions ) : void
IsMarkedAsGeneratedCodeInternal ( object obj ) : bool
MarkAsGeneratedCodeInternal ( object obj, MsCoreReferenceFinder msCoreReferenceFinder ) : void
MarkAsGeneratedCodeInternal ( this customAttributes, MsCoreReferenceFinder msCoreReferenceFinder, Mono.Cecil.ModuleDefinition importingModule ) : void

Описание методов

Constructor() публичный статический Метод

public static Constructor ( this typeDefinition, bool isStatic ) : Mono.Cecil.MethodDefinition
typeDefinition this
isStatic bool
Результат Mono.Cecil.MethodDefinition

ContainsAttribute() публичный статический Метод

public static ContainsAttribute ( this attributes, string attributeName ) : bool
attributes this
attributeName string
Результат bool

FindConstructor() публичный статический Метод

public static FindConstructor ( this typeReference, List types ) : MethodReference
typeReference this
types List
Результат Mono.Cecil.MethodReference

FindType() публичный статический Метод

public static FindType ( this moduleDefinition, string assemblyName, string typeName ) : Mono.Cecil.TypeDefinition
moduleDefinition this
assemblyName string
typeName string
Результат Mono.Cecil.TypeDefinition

GetAllTypeDefinitions() публичный статический Метод

public static GetAllTypeDefinitions ( this moduleDefinition ) : List
moduleDefinition this
Результат List

GetAttribute() публичный статический Метод

public static GetAttribute ( Collection customAttributes, string attributeName ) : CustomAttribute
customAttributes Collection
attributeName string
Результат Mono.Cecil.CustomAttribute

GetAttribute() публичный статический Метод

public static GetAttribute ( this typeDefinition, string attributeName ) : CustomAttribute
typeDefinition this
attributeName string
Результат Mono.Cecil.CustomAttribute

GetAttribute() публичный статический Метод

public static GetAttribute ( this attributes, string attributeName ) : CustomAttribute
attributes this
attributeName string
Результат Mono.Cecil.CustomAttribute

GetAttributes() публичный статический Метод

public static GetAttributes ( Collection customAttributes, string attributeName ) : IEnumerable
customAttributes Collection
attributeName string
Результат IEnumerable

GetAttributes() публичный статический Метод

public static GetAttributes ( this typeDefinition, string attributeName ) : IEnumerable
typeDefinition this
attributeName string
Результат IEnumerable

GetBaseTypes() публичный статический Метод

public static GetBaseTypes ( this type, bool includeIfaces ) : IEnumerable
type this
includeIfaces bool
Результат IEnumerable

GetFirstSequencePoint() публичный статический Метод

public static GetFirstSequencePoint ( this method ) : SequencePoint
method this
Результат SequencePoint

GetFullName() публичный статический Метод

public static GetFullName ( this member ) : string
member this
Результат string

GetGeneric() публичный статический Метод

public static GetGeneric ( this definition ) : FieldReference
definition this
Результат Mono.Cecil.FieldReference

GetGeneric() публичный статический Метод

public static GetGeneric ( this reference ) : MethodReference
reference this
Результат Mono.Cecil.MethodReference

GetMethod() публичный статический Метод

public static GetMethod ( this module, string methodName ) : MethodReference
module this
methodName string
Результат Mono.Cecil.MethodReference

GetMethodAndImport() публичный статический Метод

public static GetMethodAndImport ( this module, string methodName ) : MethodReference
module this
methodName string
Результат Mono.Cecil.MethodReference

GetMethodReference() публичный статический Метод

public static GetMethodReference ( this methodDefinition, Stack typeDefinitions ) : MethodReference
methodDefinition this
typeDefinitions Stack
Результат Mono.Cecil.MethodReference

GetName() публичный статический Метод

public static GetName ( this propertyDefinition ) : string
propertyDefinition this
Результат string

GetNullableValueType() публичный статический Метод

public static GetNullableValueType ( this typeReference ) : TypeReference
typeReference this
Результат Mono.Cecil.TypeReference

GetProperty() публичный статический Метод

public static GetProperty ( this typeReference, string propertyName ) : PropertyReference
typeReference this
propertyName string
Результат Mono.Cecil.PropertyReference

Import() публичный статический Метод

public static Import ( this typeReference, bool checkForNullableValueTypes = false ) : TypeReference
typeReference this
checkForNullableValueTypes bool
Результат Mono.Cecil.TypeReference

IsBoxingRequired() публичный статический Метод

public static IsBoxingRequired ( this typeReference, TypeReference expectedType ) : bool
typeReference this
expectedType Mono.Cecil.TypeReference
Результат bool

IsCall() публичный статический Метод

public static IsCall ( this opCode ) : bool
opCode this
Результат bool

IsDecoratedWithAttribute() публичный статический Метод

public static IsDecoratedWithAttribute ( Collection customAttributes, string attributeName ) : bool
customAttributes Collection
attributeName string
Результат bool

IsDecoratedWithAttribute() публичный статический Метод

public static IsDecoratedWithAttribute ( this typeDefinition, string attributeName ) : bool
typeDefinition this
attributeName string
Результат bool

IsMarkedAsGeneratedCode() публичный статический Метод

public static IsMarkedAsGeneratedCode ( this type ) : bool
type this
Результат bool

IsNullableValueType() публичный статический Метод

public static IsNullableValueType ( this typeReference ) : bool
typeReference this
Результат bool

MakeGeneric() публичный статический Метод

public static MakeGeneric ( this field, TypeReference declaringType ) : FieldReference
field this
declaringType Mono.Cecil.TypeReference
Результат Mono.Cecil.FieldReference

MakeGeneric() публичный статический Метод

public static MakeGeneric ( this method, TypeReference declaringType ) : MethodReference
method this
declaringType Mono.Cecil.TypeReference
Результат Mono.Cecil.MethodReference

MakeGenericIfRequired() публичный статический Метод

public static MakeGenericIfRequired ( this typeReference ) : TypeReference
typeReference this
Результат Mono.Cecil.TypeReference

MakeHostInstanceGeneric() публичный статический Метод

public static MakeHostInstanceGeneric ( this self ) : MethodReference
self this
Результат Mono.Cecil.MethodReference

MarkAsCompilerGenerated() публичный статический Метод

public static MarkAsCompilerGenerated ( this type, MsCoreReferenceFinder msCoreReferenceFinder ) : void
type this
msCoreReferenceFinder MsCoreReferenceFinder
Результат void

RemoveAttribute() публичный статический Метод

public static RemoveAttribute ( Collection customAttributes, string attributeName ) : void
customAttributes Collection
attributeName string
Результат void

RemoveAttribute() публичный статический Метод

public static RemoveAttribute ( this typeDefinition, string attributeName ) : void
typeDefinition this
attributeName string
Результат void

ResolveAssembly() публичный статический Метод

public static ResolveAssembly ( this moduleDefinition, string assemblyName ) : AssemblyDefinition
moduleDefinition this
assemblyName string
Результат Mono.Cecil.AssemblyDefinition