Ejemplo n.º 1
0
 /* 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));
     }
 }
Ejemplo n.º 2
0
 public virtual void Delete(string name)
 {
     obj.Delete(name);
 }