Descriptor for a Nested Class defined in an assembly
상속: ClassDef
예제 #1
0
파일: PERWAPI.cs 프로젝트: nomit007/f4
 internal NestedClassDef MakeNestedClass(ClassDef parent)
 {
     NestedClassDef nClass = new NestedClassDef(parent,(TypeAttr)flags,name);
     ClassDef tmp = nClass;
     tmp.fieldIx = fieldIx;
     tmp.fieldEndIx = fieldEndIx;
     tmp.methodIx = methodIx;
     tmp.methodEndIx = methodEndIx;
     tmp.extendsIx = extendsIx;
     tmp.Row = Row;
     parent.nestedClasses.Add(nClass);
     return nClass;
 }
예제 #2
0
파일: PERWAPI.cs 프로젝트: nomit007/f4
 /// <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>
 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);
 }