Fanx.Fcode.FTypeRef.isRef C# (CSharp) Méthode

isRef() public méthode

Is this a reference (boxed) type?
public isRef ( ) : bool
Résultat bool
        public bool isRef()
        {
            return stackType == OBJ;
        }

Usage Example

Exemple #1
0
        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);
        }