コード例 #1
0
        // Methods in Eeloo will be passed as an internal_EXPRLIST ICollection object to the method handler.
        public eeObject CallMethod(string name, eeObject parameters)
        {
            // Extract the expressions
            ICollection <eeObject> expressions = parameters != null?parameters.AsEXPRLIST() : new List <eeObject>();

            // Run the method
            var returnVal = this.methods[name](this, expressions);

            // Verify this object
            Verify();

            // Return method's return value
            return(returnVal);
        }
コード例 #2
0
        /* Note: the eeObject.value for eeListObject must always be a List<eeObject> */

        // Constructor passed an internal_EXPRLIST eeObject
        public static eeObject newListObject(eeObject exprlist, string modifier = null)
        {
            ICollection <eeObject> expressions;

            if (exprlist == null)
            {
                expressions = new List <eeObject>();
            }
            else
            {
                // Extract the expressions
                expressions = exprlist.AsEXPRLIST();
            }

            return(newListObject(expressions));
        }