C# Class Mono.Cecil.Inject.InjectValues

A convenience sturcture that can be used to process InjectFlags as properties instead of flags.
Mostra file Open project: denikson/Mono.Cecil.Inject Class Usage Examples

Public Properties

Property Type Description
ModifyReturn bool
ParameterType PassParametersType
PassFields bool
PassInvokingInstance bool
PassLocals bool
PassTag bool

Public Methods

Method Description
GetCombinedFlags ( ) : InjectFlags

Combines the specified properties into an equivalent value of InjectFlags.

InjectValues ( InjectFlags flags ) : System

Convert the injection flags into an instance of InjectValues.

Method Details

GetCombinedFlags() public method

Combines the specified properties into an equivalent value of InjectFlags.
public GetCombinedFlags ( ) : InjectFlags
return InjectFlags

InjectValues() public method

Convert the injection flags into an instance of InjectValues.
public InjectValues ( InjectFlags flags ) : System
flags InjectFlags Flags to convert.
return System

Property Details

ModifyReturn public_oe property

Specifies Cecil.Inject that the injection method should be allowed to prematurely stop the execution of the injected method. In addition, of the injected method has a return value, the injection method (hook) should be allowed to modify it. In this case the return type of the injection method (hook) MUST be a boolean. If the injected method has a return type (not void), the hook must have a reference parameter (marked as "out") of the same type as that of what the injected method returns.
public bool ModifyReturn
return bool

ParameterType public_oe property

Specifies how parameters should be passed
public PassParametersType ParameterType
return PassParametersType

PassFields public_oe property

Pass class fields of the type that contains the injected method. The method must not be static. The variables will be passed as references (marked as "ref").
public bool PassFields
return bool

PassInvokingInstance public_oe property

Pass the instance of the type which calls (invokes) the injection method (hook). The type of this parameter is the one that contains the injected method.
public bool PassInvokingInstance
return bool

PassLocals public_oe property

Pass local variables found in the injected method. The variables will be passed as references (marked as "ref").
public bool PassLocals
return bool

PassTag public_oe property

Pass a 32-bit signed integer to the injection method. The value is specified when injection the method.
public bool PassTag
return bool