public object Invoke(IContext context, object @this, object[] arguments) { object newelement = arguments[0]; ArrayObject array = (ArrayObject)@this; array.Elements.Add(newelement); return array.Elements.Count; }