Rhino.SpecialRef.Get C# (CSharp) Method

Get() public method

public Get ( Context cx ) : object
cx Context
return object
		public override object Get(Context cx)
		{
			switch (type)
			{
				case SPECIAL_NONE:
				{
					return ScriptRuntime.GetObjectProp(target, name, cx);
				}

				case SPECIAL_PROTO:
				{
					return target.GetPrototype();
				}

				case SPECIAL_PARENT:
				{
					return target.GetParentScope();
				}

				default:
				{
					throw Kit.CodeBug();
				}
			}
		}