private void AddCommand(InvokeMemberBinder binder, object[] args) => Command.Add(binder.Name + "(" + JavascriptArgumentUtils.ParseArray(args) + ")");
private void AddIndex(GetIndexBinder binder, object[] indexes) => Command[Command.Count() - 1] = Command.Last() + "[" + JavascriptArgumentUtils.ParseArray(indexes) + "]";
public static bool TrySet(JavascriptDynamic.JavascriptFallback fallback, object value) { if (value.GetType() == typeof(JavascriptDynamic.JavascriptFallback)) { var setValueFallback = (JavascriptDynamic.JavascriptFallback)value; fallback.RuntimeJavascript.SetJavascriptData(fallback.GetJavascriptCommand(), setValueFallback.GetJavascriptCommand()); } else { fallback.RuntimeJavascript.SetJavascriptData(fallback.GetJavascriptCommand(), JavascriptArgumentUtils.Parse(value)); } return(true); }