src/sys/dotnet/perwapi/PERWAPI.cs
/// <summary>
/// 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
/// </summary>
/// <param name="attrSet">attributes of the class to be exported</param>
/// <param name="nsName">name space name</param>
/// <param name="name">external class name</param>
/// <param name="declFile">the file where the class is declared</param>
/// <param name="isValueClass">is this class a value type?</param>
/// <returns>a descriptor for this external class</returns>
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
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
public ClassRef AddExternClass(TypeAttr attrSet, string nsName,
            string name, bool isValueClass, PEFile pefile) {
            ClassRef cRef = new ClassRef(this,nsName,name);
            if (isValueClass) cRef.MakeValueClass();
            ExternClass eClass = new ExternClass(attrSet,nsName,name,modFile);
            exportedClasses.Add(eClass);
            cRef.SetExternClass(eClass);
            classes.Add(cRef);
            return cRef;
        }
public ClassRef AddExternClass ( TypeAttr attrSet , string nsName , string name , bool isValueClass , PEFile pefile ) { ClassRef cRef = new ClassRef ( this , nsName , name ) ; if ( isValueClass ) cRef . MakeValueClass ( ) ; ExternClass eClass = new ExternClass ( attrSet , nsName , name , modFile ) ; exportedClasses . Add ( eClass ) ; cRef . SetExternClass ( eClass ) ; classes . Add ( cRef ) ; return cRef ; }
Add a class which is declared public in this external module of
THIS assembly.
Add a class which is declared public in this external module of THIS assembly .
a descriptor for this external class
a descriptor for this external class
attrSet
TypeAttr
attributes of the class to be exported
attributes of the class to be exported
nsName
string
name space name
name space name
name
string
external class name
external class name
isValueClass
bool
None
pefile
PEFile
declFile
the file where the class is declared
the file where the class is declared