GetScope() 공개 메소드

Get the scope or "parent" of this ClassRef (either ModuleRef or AssemblyRef)
public GetScope ( ) : ReferenceScope
리턴 ReferenceScope
예제 #1
0
파일: PERWAPI.cs 프로젝트: nomit007/f4
 internal override void ResolveParent(PEReader buff, bool isExtern)
 {
     if (parent != null) return;
     CIx cIx = CIx.ResolutionScope;
     if (isExtern) cIx = CIx.Implementation;
     parent = (ClassRef)buff.GetCodedElement(cIx,resScopeIx);
     parent.ResolveParent(buff,isExtern);
     parent = (ClassRef)buff.GetCodedElement(cIx,resScopeIx);
     if (parent == null) return;
     NestedClassRef existing = parent.GetNestedClass(name);
     if (existing == null) {
         scope = parent.GetScope();
         parent.AddToClassList(this);
     } else if (isExtern)
         buff.InsertInTable(MDTable.ExportedType,Row,existing);
     else
         buff.InsertInTable(MDTable.TypeRef,Row,existing);
 }
예제 #2
0
파일: PERWAPI.cs 프로젝트: nomit007/f4
 /*-------------------- Constructors ---------------------------------*/
 internal NestedClassRef(ClassRef parent, string name)
     : base(parent.GetScope(),"",name)
 {
     this.parent = parent;
 }