Esempio n. 1
0
        public override Object Evaluate(Context context)
        {
            var mainObject = MainArgument.Evaluate(context);

            if (mainObject != null && mainObject is IEnumerable)
            {
                try
                {
                    return((mainObject as IEnumerable).Cast <Object> ().ElementAt(Index));
                }
                catch
                {
                    return(null);
                }
            }

            return(null);
        }
Esempio n. 2
0
        public override Object Evaluate(Context context)
        {
            Context nested = context.CreateChild(MainArgument.Evaluate(context));

            return(NestedArgument.Evaluate(nested));
        }