PERWAPI.ClassRef.ReadClass C# (CSharp) Méthode

ReadClass() static private méthode

static private ReadClass ( PEReader buff, ReferenceScope resScope ) : ClassRef
buff PEReader
resScope ReferenceScope
Résultat ClassRef
        internal static ClassRef ReadClass(PEReader buff, ReferenceScope resScope)
        {
            uint resScopeIx = buff.GetCodedIndex(CIx.ResolutionScope);
            string name = buff.GetString();
            string nameSpace = buff.GetString();
            ClassRef newClass = (ClassRef)resScope.GetExistingClass(nameSpace,name);
            if (newClass == null)
                newClass = new ClassRef(resScope,nameSpace,name);
            return newClass;
        }