/* Utility functions to encapsulate index > Integer.MAX_VALUE * handling. Also avoids unnecessary object creation that would * be necessary to use the general ScriptRuntime.get/setElem * functions... though this is probably premature optimization. */ private static void deleteElem (IScriptable target, long index) { int i = (int)index; if (i == index) { target.Delete (i); } else { target.Delete (Convert.ToString (index)); } }
public virtual void Delete(string name) { obj.Delete(name); }