C# Class Hiro.ILProcessorExtensions

A class that extends the ILProcessor class with helper methods that make it easier to save information about the method currently being implemented.
Afficher le fichier Open project: philiplaureano/Hiro

Méthodes publiques

Méthode Description
EmitWriteLine ( this IL, string text ) : void

Emits a Console.WriteLine call using the current ILProcessor.

EmitWriteLineIfNull ( this IL, string text, Mono.Cecil.Cil.VariableDefinition targetVariable ) : void

Emits a Console.WriteLine call to using the current ILProcessor that will only be called if the contents of the target variable are null at runtime.

Method Details

EmitWriteLine() public static méthode

Emits a Console.WriteLine call using the current ILProcessor.
public static EmitWriteLine ( this IL, string text ) : void
IL this The target ILProcessor.
text string The text that will be written to the console.
Résultat void

EmitWriteLineIfNull() public static méthode

Emits a Console.WriteLine call to using the current ILProcessor that will only be called if the contents of the target variable are null at runtime.
public static EmitWriteLineIfNull ( this IL, string text, Mono.Cecil.Cil.VariableDefinition targetVariable ) : void
IL this The target ILProcessor.
text string The text that will be written to the console.
targetVariable Mono.Cecil.Cil.VariableDefinition The target variable that will be checked for null at runtime.
Résultat void