src/sys/dotnet/perwapi/PERWAPI.cs
/// <summary>
/// Add a nested class to this class
/// </summary>
/// <param name="attrSet">attributes for this nested class</param>
/// <param name="name">nested class name</param>
/// <returns>a descriptor for this new nested class</returns>
Add a nested class to this class
Add a nested class to this class
public NestedClassDef AddNestedClass(TypeAttr attrSet, string name) {
            NestedClassDef nClass = GetNestedClass(name);
            if (nClass != null)
                throw new DescriptorException("Nested Class " + nClass.NameString());
            nClass = new NestedClassDef(this,attrSet,name);
            nestedClasses.Add(nClass);
            return (nClass);
        }
public NestedClassDef AddNestedClass ( TypeAttr attrSet , string name ) { NestedClassDef nClass = GetNestedClass ( name ) ; if ( nClass != null ) throw new DescriptorException ( " " + nClass . NameString ( ) ) ; nClass = new NestedClassDef ( this , attrSet , name ) ; nestedClasses . Add ( nClass ) ; return ( nClass ) ; }
Add a nested class to this class
Add a nested class to this class
a descriptor for this new nested class
a descriptor for this new nested class
attrSet
TypeAttr
attributes for this nested class
attributes for this nested class
name
string
nested class name
nested class name