src/sys/dotnet/perwapi/PERWAPI.cs
/// <summary>
/// Add a class to this module
/// If this class already exists, throw an exception
/// </summary>
/// <param name="aClass">The class to be added</param>
Add a class to this module
If this class already exists, throw an exception
Add a class to this module If this class already exists throw an exception
public void AddClass(ClassDef aClass) {
            ClassDef eClass = GetClass(aClass.NameSpace(),aClass.Name());
            if (eClass != null)
                throw new DescriptorException("Class " + aClass.NameString());
            classes.Add(aClass);
            aClass.SetScope((PEFile)this);
        }
public void AddClass ( ClassDef aClass ) { ClassDef eClass = GetClass ( aClass . NameSpace ( ) , aClass . Name ( ) ) ; if ( eClass != null ) throw new DescriptorException ( " " + aClass . NameString ( ) ) ; classes . Add ( aClass ) ; aClass . SetScope ( ( PEFile ) this ) ; }
Add a class to this module
If this class already exists, throw an exception
Add a class to this module If this class already exists throw an exception
// MERGE change Refs to Defs here, fix this
aClass
ClassDef
The class to be added
The class to be added