C# Class Catel.Fody.CecilExtensions

Afficher le fichier Open project: Catel/Catel.Fody

Méthodes publiques

Méthode Description
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

Private Methods

Méthode Description
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

Method Details

Constructor() public static méthode

public static Constructor ( this typeDefinition, bool isStatic ) : Mono.Cecil.MethodDefinition
typeDefinition this
isStatic bool
Résultat Mono.Cecil.MethodDefinition

ContainsAttribute() public static méthode

public static ContainsAttribute ( this attributes, string attributeName ) : bool
attributes this
attributeName string
Résultat bool

FindConstructor() public static méthode

public static FindConstructor ( this typeReference, List types ) : MethodReference
typeReference this
types List
Résultat Mono.Cecil.MethodReference

FindType() public static méthode

public static FindType ( this moduleDefinition, string assemblyName, string typeName ) : Mono.Cecil.TypeDefinition
moduleDefinition this
assemblyName string
typeName string
Résultat Mono.Cecil.TypeDefinition

GetAllTypeDefinitions() public static méthode

public static GetAllTypeDefinitions ( this moduleDefinition ) : List
moduleDefinition this
Résultat List

GetAttribute() public static méthode

public static GetAttribute ( Collection customAttributes, string attributeName ) : CustomAttribute
customAttributes Collection
attributeName string
Résultat Mono.Cecil.CustomAttribute

GetAttribute() public static méthode

public static GetAttribute ( this typeDefinition, string attributeName ) : CustomAttribute
typeDefinition this
attributeName string
Résultat Mono.Cecil.CustomAttribute

GetAttribute() public static méthode

public static GetAttribute ( this attributes, string attributeName ) : CustomAttribute
attributes this
attributeName string
Résultat Mono.Cecil.CustomAttribute

GetAttributes() public static méthode

public static GetAttributes ( Collection customAttributes, string attributeName ) : IEnumerable
customAttributes Collection
attributeName string
Résultat IEnumerable

GetAttributes() public static méthode

public static GetAttributes ( this typeDefinition, string attributeName ) : IEnumerable
typeDefinition this
attributeName string
Résultat IEnumerable

GetBaseTypes() public static méthode

public static GetBaseTypes ( this type, bool includeIfaces ) : IEnumerable
type this
includeIfaces bool
Résultat IEnumerable

GetFirstSequencePoint() public static méthode

public static GetFirstSequencePoint ( this method ) : SequencePoint
method this
Résultat SequencePoint

GetFullName() public static méthode

public static GetFullName ( this member ) : string
member this
Résultat string

GetGeneric() public static méthode

public static GetGeneric ( this definition ) : FieldReference
definition this
Résultat Mono.Cecil.FieldReference

GetGeneric() public static méthode

public static GetGeneric ( this reference ) : MethodReference
reference this
Résultat Mono.Cecil.MethodReference

GetMethod() public static méthode

public static GetMethod ( this module, string methodName ) : MethodReference
module this
methodName string
Résultat Mono.Cecil.MethodReference

GetMethodAndImport() public static méthode

public static GetMethodAndImport ( this module, string methodName ) : MethodReference
module this
methodName string
Résultat Mono.Cecil.MethodReference

GetMethodReference() public static méthode

public static GetMethodReference ( this methodDefinition, Stack typeDefinitions ) : MethodReference
methodDefinition this
typeDefinitions Stack
Résultat Mono.Cecil.MethodReference

GetName() public static méthode

public static GetName ( this propertyDefinition ) : string
propertyDefinition this
Résultat string

GetNullableValueType() public static méthode

public static GetNullableValueType ( this typeReference ) : TypeReference
typeReference this
Résultat Mono.Cecil.TypeReference

GetProperty() public static méthode

public static GetProperty ( this typeReference, string propertyName ) : PropertyReference
typeReference this
propertyName string
Résultat Mono.Cecil.PropertyReference

Import() public static méthode

public static Import ( this typeReference, bool checkForNullableValueTypes = false ) : TypeReference
typeReference this
checkForNullableValueTypes bool
Résultat Mono.Cecil.TypeReference

IsBoxingRequired() public static méthode

public static IsBoxingRequired ( this typeReference, TypeReference expectedType ) : bool
typeReference this
expectedType Mono.Cecil.TypeReference
Résultat bool

IsCall() public static méthode

public static IsCall ( this opCode ) : bool
opCode this
Résultat bool

IsDecoratedWithAttribute() public static méthode

public static IsDecoratedWithAttribute ( Collection customAttributes, string attributeName ) : bool
customAttributes Collection
attributeName string
Résultat bool

IsDecoratedWithAttribute() public static méthode

public static IsDecoratedWithAttribute ( this typeDefinition, string attributeName ) : bool
typeDefinition this
attributeName string
Résultat bool

IsMarkedAsGeneratedCode() public static méthode

public static IsMarkedAsGeneratedCode ( this type ) : bool
type this
Résultat bool

IsNullableValueType() public static méthode

public static IsNullableValueType ( this typeReference ) : bool
typeReference this
Résultat bool

MakeGeneric() public static méthode

public static MakeGeneric ( this field, TypeReference declaringType ) : FieldReference
field this
declaringType Mono.Cecil.TypeReference
Résultat Mono.Cecil.FieldReference

MakeGeneric() public static méthode

public static MakeGeneric ( this method, TypeReference declaringType ) : MethodReference
method this
declaringType Mono.Cecil.TypeReference
Résultat Mono.Cecil.MethodReference

MakeGenericIfRequired() public static méthode

public static MakeGenericIfRequired ( this typeReference ) : TypeReference
typeReference this
Résultat Mono.Cecil.TypeReference

MakeHostInstanceGeneric() public static méthode

public static MakeHostInstanceGeneric ( this self ) : MethodReference
self this
Résultat Mono.Cecil.MethodReference

MarkAsCompilerGenerated() public static méthode

public static MarkAsCompilerGenerated ( this type, MsCoreReferenceFinder msCoreReferenceFinder ) : void
type this
msCoreReferenceFinder MsCoreReferenceFinder
Résultat void

RemoveAttribute() public static méthode

public static RemoveAttribute ( Collection customAttributes, string attributeName ) : void
customAttributes Collection
attributeName string
Résultat void

RemoveAttribute() public static méthode

public static RemoveAttribute ( this typeDefinition, string attributeName ) : void
typeDefinition this
attributeName string
Résultat void

ResolveAssembly() public static méthode

public static ResolveAssembly ( this moduleDefinition, string assemblyName ) : AssemblyDefinition
moduleDefinition this
assemblyName string
Résultat Mono.Cecil.AssemblyDefinition