Esempio n. 1
0
        public TypeRefProps GetTypeRefProps(uint typeToken)
        {
            TypeRefProps typeRefProps = new TypeRefProps();

            typeRefProps.Token = typeToken;
            typeRefProps.Name  =
                Util.GetString(delegate(uint pStringLenght, out uint stringLenght, System.IntPtr pString) {
                uint unused;
                metaData.GetTypeRefProps(typeRefProps.Token,
                                         out unused,
                                         pString, pStringLenght, out stringLenght                        // The string to get
                                         );
            });

            return(typeRefProps);
        }
Esempio n. 2
0
        public TypeRefProps GetTypeRefProps(uint typeRef)
        {
            TypeRefProps ret = new TypeRefProps();

            ret.TypeRef = typeRef;
            ret.Name    =
                Util.GetString(delegate(uint pStringLenght, out uint stringLenght, System.IntPtr pString) {
                metaData.GetTypeRefProps(
                    ret.TypeRef,
                    out ret.ResolutionScope,
                    pString, pStringLenght, out stringLenght                             // The string to get
                    );
            });

            return(ret);
        }