Rhino.Arguments.GetInstanceIdValue C# (CSharp) Method

GetInstanceIdValue() protected method

protected GetInstanceIdValue ( int id ) : object
id int
return object
		protected internal override object GetInstanceIdValue(int id)
		{
			switch (id)
			{
				case Id_callee:
				{
					return calleeObj;
				}

				case Id_length:
				{
					return lengthObj;
				}

				case Id_caller:
				{
					object value = callerObj;
					if (value == UniqueTag.NULL_VALUE)
					{
						value = null;
					}
					else
					{
						if (value == null)
						{
							NativeCall caller = activation.parentActivationCall;
							if (caller != null)
							{
								value = caller.Get("arguments", caller);
							}
						}
					}
					return value;
				}

				case Id_constructor:
				{
					return constructor;
				}
			}
			return base.GetInstanceIdValue(id);
		}