C# Class PERWAPI.Param

Descriptor for a parameter of a method defined in this assembly/module
Inheritance: MetaDataElement
Show file Open project: xored/f4 Class Usage Examples

Protected Properties

Property Type Description
nameIx uint
pName string

Public Methods

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

Private Methods

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

Method Details

AddAttribute() public method

public AddAttribute ( ParamAttr att ) : void
att ParamAttr
return void

AddDefaultValue() public method

Add a default value to this parameter
public AddDefaultValue ( Constant cVal ) : void
cVal Constant the default value for the parameter
return void

GetAttributes() public method

public GetAttributes ( ) : ParamAttr
return ParamAttr

GetDefaultValue() public method

Get the default constant value for this parameter
public GetDefaultValue ( ) : Constant
return Constant

GetMarshalType() public method

Get the parameter marshalling information
public GetMarshalType ( ) : NativeType
return NativeType

GetName() public method

Retrieve the name of this parameter
public GetName ( ) : string
return string

GetParType() public method

Get the type of this parameter
public GetParType ( ) : Type
return Type

Param() public method

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

RemoveDefaultValue() public method

Remove the default constant value for this parameter
public RemoveDefaultValue ( ) : void
return void

RemoveMashalType() public method

Remove any marshalling information for this parameter
public RemoveMashalType ( ) : void
return void

SetAttributes() public method

public SetAttributes ( ParamAttr att ) : void
att ParamAttr
return void

SetMarshalType() public method

Add marshalling information about this parameter
public SetMarshalType ( NativeType mType ) : void
mType NativeType
return void

SetName() public method

Set the name of this parameter
public SetName ( string nam ) : void
nam string parameter name
return void

SetParType() public method

Set the type of this parameter
public SetParType ( Type parType ) : void
parType Type
return void

Property Details

nameIx protected property

protected uint nameIx
return uint

pName protected property

protected string pName
return string