示例#1
0
        public MethodReference(string name, TypeReference returnType)
            : base(name)
        {
            if (returnType == null)
                throw new ArgumentNullException ("returnType");

            this.return_type = new MethodReturnType (this);
            this.return_type.ReturnType = returnType;
            this.token = new MetadataToken (TokenType.MemberRef);
        }
示例#2
0
 internal MethodReference()
 {
     this.return_type = new MethodReturnType (this);
     this.token = new MetadataToken (TokenType.MemberRef);
 }