示例#1
0
        CallingConventionSig ImportSignature(uint rid)
        {
            var sig = Resolve(rid) as byte[];

            if (sig == null)
            {
                return(null);
            }

            return(SignatureReader.ReadSig(this, module.CorLibTypes, sig, gpContext));
        }
示例#2
0
        private CallingConventionSig ImportSignature(uint rid)
        {
            byte[] array = this.Resolve(rid) as byte[];
            bool   flag  = array == null;
            bool   flag2 = flag;
            CallingConventionSig result;

            if (flag2)
            {
                result = null;
            }
            else
            {
                result = SignatureReader.ReadSig(this, this.module.CorLibTypes, array, this.gpContext);
            }
            return(result);
        }
示例#3
0
        void UpdateLocals(byte[] localsSig)
        {
            if (localsSig == null || localsSig.Length == 0)
            {
                return;
            }

            var sig = SignatureReader.ReadSig(this, module.CorLibTypes, localsSig, gpContext) as LocalSig;

            if (sig == null)
            {
                return;
            }

            foreach (var local in sig.Locals)
            {
                locals.Add(new Local(local));
            }
        }
示例#4
0
        private void UpdateLocals(byte[] localsSig)
        {
            bool flag  = localsSig == null || localsSig.Length == 0;
            bool flag2 = !flag;

            if (flag2)
            {
                LocalSig localSig = SignatureReader.ReadSig(this, this.module.CorLibTypes, localsSig, this.gpContext) as LocalSig;
                bool     flag3    = localSig == null;
                bool     flag4    = !flag3;
                if (flag4)
                {
                    foreach (TypeSig typeSig in localSig.Locals)
                    {
                        this.locals.Add(new Local(typeSig));
                    }
                }
            }
        }
示例#5
0
 public CallingConventionSig ReadSignature(byte[] data)
 {
     return(SignatureReader.ReadSig(SignatureReaderHelper.Instance, corLibTypes, data));
 }
示例#6
0
 public CallingConventionSig ReadSignature(IMetaDataImport mdi, byte[] data)
 {
     return(SignatureReader.ReadSig(new SignatureReaderHelper(mdi), corLibTypes, data));
 }