Exemple #1
0
        public virtual object BinaryOp(string op, object other)
        {
            switch (op)
            {
            case "==":
                return(Equals(other));

            default:
                DynamicHelper.LogInfo("__binary-op(" + op + ") meta-method Not Implemented.");
                return(null);
            }
        }
Exemple #2
0
        public virtual object UnaryOp(string op)
        {
            switch (op)
            {
            case "+":
                return(this);

            default:
                DynamicHelper.LogInfo("__unary-op(" + op + ") meta-method Not Implemented.");
                return(null);
            }
        }
Exemple #3
0
 internal protected virtual object GetValueImp(object key)
 {
     DynamicHelper.LogInfo("no getter on fields provider");
     return(null);
 }
Exemple #4
0
 internal protected virtual IEnumerator <KeyValuePair <object, object> > GetEnumeratorImp()
 {
     DynamicHelper.LogInfo("no enum on fields provider");
     yield break;
 }