Пример #1
0
        public XsMethod DefineMethod(string name, Type returnType, XsParameter[] parameters)
        {
            var method = new XsMethod(this, name, MethodAttributes.Public, returnType, parameters);

            this.methods.Add(method);
            return(method);
        }
Пример #2
0
 public bool Equals(XsMethod other)
 {
     if (other == null)
     {
         return(false);
     }
     return(other.GetHashCode() == this.GetHashCode());
 }
Пример #3
0
 public virtual void EmitCall(OpCode opcode, XsMethod methodInfo, Type[] optionalParameterTypes)
 => EmitCall(opcode, methodInfo.MethodInfo, optionalParameterTypes);
Пример #4
0
 public virtual void Emit(OpCode opcode, XsMethod meth) => Emit(opcode, meth.MethodInfo);