public void Emit(OpCode opcode, SignatureHelper signature)
 {
     Emit(opcode);
     UpdateStack(opcode, signature.HasThis, signature.ReturnType, signature.ParameterCount);
     code.Write(0x11000000 | moduleBuilder.StandAloneSig.FindOrAddRecord(moduleBuilder.Blobs.Add(signature.GetSignature(moduleBuilder))));
 }
Exemple #2
0
 public SignatureToken GetSignatureToken(SignatureHelper sigHelper)
 {
     return(new SignatureToken(this.StandAloneSig.FindOrAddRecord(this.Blobs.Add(sigHelper.GetSignature(this))) | (StandAloneSigTable.Index << 24)));
 }