PERWAPI.ClassRef.GetNestedClass C# (CSharp) Method

GetNestedClass() public method

Get the nested class "name"
public GetNestedClass ( string name ) : NestedClassRef
name string Nestec class name
return NestedClassRef
        public NestedClassRef GetNestedClass(string name)
        {
            // check nested names
            return (NestedClassRef)GetNested(name);
        }

Usage Example

Ejemplo n.º 1
0
 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);
 }