Beispiel #1
0
        protected override bool NotEqual(ElaValue left, ElaValue right, ExecutionContext ctx)
        {
            var lg = left.As<ElaGuid>();
            var rg = right.As<ElaGuid>();

            if (lg != null && rg != null)
                return lg.Value != rg.Value;
            else if (lg != null)
                return right.NotEqual(left, right, ctx);

            return true;
        }
Beispiel #2
0
 public bool IsEvaled(ElaValue obj)
 {
     return !obj.Is<ElaLazy>() || obj.As<ElaLazy>().Evaled;
 }
Beispiel #3
0
 public bool IsEvaled(ElaValue obj)
 {
     return(!obj.Is <ElaLazy>() || obj.As <ElaLazy>().Evaled);
 }
Beispiel #4
0
 protected override int Compare(ElaValue @this, ElaValue other)
 {
     var g1 = @this.As<ElaGuid>();
     var g2 = other.As<ElaGuid>();
     return g1 != null && g2 != null ? g1.Value.CompareTo(g2.Value) : -1;
 }