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

Get() public final method

Implementation of ECMAScript [[Get]]
public final Get ( Context cx, object id ) : object
cx Rhino.Context
id object
return object
		public sealed override object Get(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 cast
				object result = Get((int)index, this);
				if (result == ScriptableConstants.NOT_FOUND)
				{
					result = Undefined.instance;
				}
				return result;
			}
			return GetXMLProperty(xmlName);
		}

Same methods

XMLObjectImpl::Get ( string name, Scriptable start ) : object