Beispiel #1
0
 public MethodReference(string name, TypeReference returnType) : base(name)
 {
     if (returnType == null)
     {
         throw new ArgumentNullException("returnType");
     }
     this.return_type            = new Mono.Cecil.MethodReturnType(this);
     this.return_type.ReturnType = returnType;
     base.token = new MetadataToken(TokenType.MemberRef);
 }
Beispiel #2
0
 internal MethodReference()
 {
     this.return_type = new Mono.Cecil.MethodReturnType(this);
     base.token       = new MetadataToken(TokenType.MemberRef);
 }