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); }
public override Object Evaluate(Context context) { Context nested = context.CreateChild(MainArgument.Evaluate(context)); return(NestedArgument.Evaluate(nested)); }