CallingConventionSig ImportSignature(uint rid) { var sig = Resolve(rid) as byte[]; if (sig == null) { return(null); } return(SignatureReader.ReadSig(this, module.CorLibTypes, sig, gpContext)); }
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); }
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)); } }
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)); } } } }
public CallingConventionSig ReadSignature(byte[] data) { return(SignatureReader.ReadSig(SignatureReaderHelper.Instance, corLibTypes, data)); }
public CallingConventionSig ReadSignature(IMetaDataImport mdi, byte[] data) { return(SignatureReader.ReadSig(new SignatureReaderHelper(mdi), corLibTypes, data)); }