Rhino.Xmlimpl.XMLObjectImpl.Delete C# (CSharp) Method

Delete() public final method

Implementation of ECMAScript [[Delete]].
Implementation of ECMAScript [[Delete]].
public final Delete ( Context cx, object id ) : bool
cx Rhino.Context
id object
return bool
		public sealed override bool Delete(Context cx, object id)
		{
			if (cx == null)
			{
				cx = Context.GetCurrentContext();
			}
			XMLName xmlName = lib.ToXMLNameOrIndex(cx, id);
			if (xmlName == null)
			{
				long index = ScriptRuntime.LastUint32Result(cx);
				// XXX Fix this
				Delete((int)index);
				return true;
			}
			DeleteXMLProperty(xmlName);
			return true;
		}

Same methods

XMLObjectImpl::Delete ( string name ) : void