private void doCompare(string suffix, FTypeRef lhs, FTypeRef rhs) { // get lhs and rhs types string[] args = new string[] { lhs.isRef() ? "System.Object" : lhs.nname(), rhs.isRef() ? "System.Object" : rhs.nname() }; string ret = (suffix == "") ? "System.Int64" : "System.Boolean"; PERWAPI.Method m = emitter.findMethod("Fanx.Util.OpUtil", "compare"+suffix, args, ret); code.MethInst(MethodOp.call, m); }