PEAPI

ModuleRef.AddMethod Method 

Add a "global" method in another module

[Visual Basic]
Public Function AddMethod( _
   ByVal name As String, _
   ByVal retType As PEAPI.Type, _
   ByVal pars As PEAPI.Type() _
) As PEAPI.MethodRef
[C#]
public MethodRef AddMethod(
   string name,
   Type retType,
   Type[] pars
);

Parameters

name
method name
retType
return type
pars
method parameter types

Return Value

a descriptor for this method in anther module

See Also

ModuleRef Class | ModuleRef Members | PEAPI Namespace