PEAPI

ModuleRef.AddExternClass Method 

Add a class which is declared public in this external module of THIS assembly. This class will be exported from this assembly. The ilasm syntax for this is .extern class

[Visual Basic]
Public Function AddExternClass( _
   ByVal attrSet As PEAPI.TypeAttr, _
   ByVal nsName As String, _
   ByVal name As String, _
   ByVal declFile As PEAPI.FileRef, _
   ByVal isValueClass As Boolean _
) As PEAPI.ExternClassRef
[C#]
public ExternClassRef AddExternClass(
   TypeAttr attrSet,
   string nsName,
   string name,
   FileRef declFile,
   bool isValueClass
);

Parameters

attrSet
attributes of the class to be exported
nsName
name space name
name
external class name
declFile
the file where the class is declared
isValueClass
is this class a value type?

Return Value

a descriptor for this external class

See Also

ModuleRef Class | ModuleRef Members | PEAPI Namespace