C# Класс Gendarme.Framework.Rocks.ModuleRocks

ModuleRocks contains extensions methods for ModuleDefinition and the related collection classes.
Показать файл Открыть проект

Private Properties

Свойство Тип Описание
ModuleRocks System

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

Метод Описание
AnyMemberReference ( this self, bool>.Func predicate ) : bool

Check if any MemberReference, referenced by the current ModuleDefinition, satisfies the specified predicate.

Cecil's GetMemberReferences method will allocate a new array each time it is called. This extension method will cache the IEnumerable, on the first use, to reduce memory consumption.

AnyTypeReference ( this self, bool>.Func predicate ) : bool

Check if any TypeReference, referenced by the current ModuleDefinition, satisfies the specified predicate.

Cecil's GetTypeReferences method will allocate a new array each time it is called. This extension method will cache the IEnumerable, on the first use, to reduce memory consumption.

GetAllTypes ( this self ) : IEnumerable

Return an IEnumerable that allows a single loop (like a foreach) to traverse all types that are defined in a module.

LoadDebuggingSymbols ( this self ) : void

Load, if available, the debugging symbols associated with the module. This first try to load a MDB file (symbols from the Mono:: runtime) and then, if not present and running on MS.NET, try to load a PDB file (symbols from MS runtime).

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

Метод Описание
ModuleRocks ( ) : System

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

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

Check if any MemberReference, referenced by the current ModuleDefinition, satisfies the specified predicate.
Cecil's GetMemberReferences method will allocate a new array each time it is called. This extension method will cache the IEnumerable, on the first use, to reduce memory consumption.
public static AnyMemberReference ( this self, bool>.Func predicate ) : bool
self this The ModuleDefinition on which the extension method can be called.
predicate bool>.Func The condition to execute on a provided MemberReference
Результат bool

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

Check if any TypeReference, referenced by the current ModuleDefinition, satisfies the specified predicate.
Cecil's GetTypeReferences method will allocate a new array each time it is called. This extension method will cache the IEnumerable, on the first use, to reduce memory consumption.
public static AnyTypeReference ( this self, bool>.Func predicate ) : bool
self this The ModuleDefinition on which the extension method can be called.
predicate bool>.Func The condition to execute on a provided TypeReference
Результат bool

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

Return an IEnumerable that allows a single loop (like a foreach) to traverse all types that are defined in a module.
public static GetAllTypes ( this self ) : IEnumerable
self this The ModuleDefinition on which the extension method can be called.
Результат IEnumerable

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

Load, if available, the debugging symbols associated with the module. This first try to load a MDB file (symbols from the Mono:: runtime) and then, if not present and running on MS.NET, try to load a PDB file (symbols from MS runtime).
public static LoadDebuggingSymbols ( this self ) : void
self this
Результат void