Exemple #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);
        }
Exemple #2
0
 public bool Equals(XsMethod other)
 {
     if (other == null)
     {
         return(false);
     }
     return(other.GetHashCode() == this.GetHashCode());
 }
 public virtual void EmitCall(OpCode opcode, XsMethod methodInfo, Type[] optionalParameterTypes)
 => EmitCall(opcode, methodInfo.MethodInfo, optionalParameterTypes);
 public virtual void Emit(OpCode opcode, XsMethod meth) => Emit(opcode, meth.MethodInfo);