C# Класс PERWAPI.Param

Descriptor for a parameter of a method defined in this assembly/module
Наследование: MetaDataElement
Показать файл Открыть проект Примеры использования класса

Защищенные свойства (Protected)

Свойство Тип Описание
nameIx uint
pName string

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

Метод Описание
AddAttribute ( ParamAttr att ) : void
AddDefaultValue ( Constant cVal ) : void

Add a default value to this parameter

GetAttributes ( ) : ParamAttr
GetDefaultValue ( ) : Constant

Get the default constant value for this parameter

GetMarshalType ( ) : NativeType

Get the parameter marshalling information

GetName ( ) : string

Retrieve the name of this parameter

GetParType ( ) : Type

Get the type of this parameter

Param ( ParamAttr mode, string parName, Type parType ) : System

Create a new parameter for a method

RemoveDefaultValue ( ) : void

Remove the default constant value for this parameter

RemoveMashalType ( ) : void

Remove any marshalling information for this parameter

SetAttributes ( ParamAttr att ) : void
SetMarshalType ( NativeType mType ) : void

Add marshalling information about this parameter

SetName ( string nam ) : void

Set the name of this parameter

SetParType ( Type parType ) : void

Set the type of this parameter

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

Метод Описание
BuildCILInfo ( CILWriter output ) : void
BuildTables ( MetaDataOut md ) : void
Copy ( Type paramType ) : Param
GetCodedIx ( CIx code ) : uint
Param ( PEReader buff ) : System
Read ( PEReader buff, TableRow pars ) : void
Resolve ( PEReader buff, uint fIx, Type type ) : void
Size ( MetaData md ) : uint
TypeSig ( MemoryStream str ) : void
Write ( CILWriter output ) : void
Write ( PEWriter output ) : void

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

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

public AddAttribute ( ParamAttr att ) : void
att ParamAttr
Результат void

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

Add a default value to this parameter
public AddDefaultValue ( Constant cVal ) : void
cVal Constant the default value for the parameter
Результат void

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

public GetAttributes ( ) : ParamAttr
Результат ParamAttr

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

Get the default constant value for this parameter
public GetDefaultValue ( ) : Constant
Результат Constant

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

Get the parameter marshalling information
public GetMarshalType ( ) : NativeType
Результат NativeType

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

Retrieve the name of this parameter
public GetName ( ) : string
Результат string

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

Get the type of this parameter
public GetParType ( ) : Type
Результат Type

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

Create a new parameter for a method
public Param ( ParamAttr mode, string parName, Type parType ) : System
mode ParamAttr param mode (in, out, opt)
parName string parameter name
parType Type parameter type
Результат System

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

Remove the default constant value for this parameter
public RemoveDefaultValue ( ) : void
Результат void

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

Remove any marshalling information for this parameter
public RemoveMashalType ( ) : void
Результат void

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

public SetAttributes ( ParamAttr att ) : void
att ParamAttr
Результат void

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

Add marshalling information about this parameter
public SetMarshalType ( NativeType mType ) : void
mType NativeType
Результат void

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

Set the name of this parameter
public SetName ( string nam ) : void
nam string parameter name
Результат void

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

Set the type of this parameter
public SetParType ( Type parType ) : void
parType Type
Результат void

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

nameIx защищенное свойство

protected uint nameIx
Результат uint

pName защищенное свойство

protected string pName
Результат string