PERWAPI.ModuleRef.AddExternClass C# (CSharp) Method

AddExternClass() public 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
public AddExternClass ( TypeAttr attrSet, string nsName, string name, bool isValueClass, PEFile pefile ) : ClassRef
attrSet TypeAttr attributes of the class to be exported
nsName string name space name
name string external class name
isValueClass bool is this class a value type?
pefile PEFile
return ClassRef
        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;
        }

Same methods

ModuleRef::AddExternClass ( ExternClass eClass ) : void