C# Class Gendarme.Framework.Rocks.ModuleRocks

ModuleRocks contains extensions methods for ModuleDefinition and the related collection classes.
Datei anzeigen Open project: remobjects/mono-tools

Private Properties

Property Type Description
ModuleRocks System

Public Methods

Method Description
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).

Private Methods

Method Description
ModuleRocks ( ) : System

Method Details

AnyMemberReference() public static method

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
return bool

AnyTypeReference() public static method

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
return bool

GetAllTypes() public static method

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.
return IEnumerable

LoadDebuggingSymbols() public static method

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
return void