C# Класс Mono.Cecil.Inject.InjectValues

A convenience sturcture that can be used to process InjectFlags as properties instead of flags.
Показать файл Открыть проект Примеры использования класса

Открытые свойства

Свойство Тип Описание
ModifyReturn bool
ParameterType PassParametersType
PassFields bool
PassInvokingInstance bool
PassLocals bool
PassTag bool

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

Метод Описание
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.

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

GetCombinedFlags() публичный Метод

Combines the specified properties into an equivalent value of InjectFlags.
public GetCombinedFlags ( ) : InjectFlags
Результат InjectFlags

InjectValues() публичный Метод

Convert the injection flags into an instance of InjectValues.
public InjectValues ( InjectFlags flags ) : System
flags InjectFlags Flags to convert.
Результат System

Описание свойств

ModifyReturn публичное свойство

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
Результат bool

ParameterType публичное свойство

Specifies how parameters should be passed
public PassParametersType ParameterType
Результат PassParametersType

PassFields публичное свойство

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
Результат bool

PassInvokingInstance публичное свойство

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
Результат bool

PassLocals публичное свойство

Pass local variables found in the injected method. The variables will be passed as references (marked as "ref").
public bool PassLocals
Результат bool

PassTag публичное свойство

Pass a 32-bit signed integer to the injection method. The value is specified when injection the method.
public bool PassTag
Результат bool