public void MakeExported() { if ((scope == null) || (!(scope is ModuleRef))) throw new Exception("Module not set for class to be exported"); ((ModuleRef)scope).AddToExportedClassList(this); }