Ancestry.QueryProcessor.Type.BaseType.CallClassOp C# (CSharp) Method

CallClassOp() protected method

Attempt to invoke an operator overload on the left-hand class if there is one.
protected CallClassOp ( MethodContext method, string opName ) : bool
method Ancestry.QueryProcessor.Compile.MethodContext
opName string
return bool
        protected bool CallClassOp(MethodContext method, string opName, params System.Type[] types)
        {
            var classOp = types[0].GetMethod(opName, types);
            if (classOp != null)
            {
                method.IL.EmitCall(OpCodes.Call, classOp, null);
                return true;
            }
            return false;
        }