예제 #1
0
 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))));
 }
예제 #2
0
 public SignatureToken GetSignatureToken(SignatureHelper sigHelper)
 {
     return(new SignatureToken(this.StandAloneSig.FindOrAddRecord(this.Blobs.Add(sigHelper.GetSignature(this))) | (StandAloneSigTable.Index << 24)));
 }