Rhino.ScriptRuntime.PropIncrDecr C# (CSharp) Method

PropIncrDecr() public static method

public static PropIncrDecr ( object obj, string id, Context cx, int incrDecrMask ) : object
obj object
id string
cx Context
incrDecrMask int
return object
		public static object PropIncrDecr(object obj, string id, Context cx, int incrDecrMask)
		{
			Scriptable start = ToObjectOrNull(cx, obj);
			if (start == null)
			{
				throw UndefReadError(obj, id);
			}
			Scriptable target = start;
			object value;
			do
			{
				value = target.Get(id, start);
				if (value != ScriptableConstants.NOT_FOUND)
				{
					goto search_break;
				}
				target = target.GetPrototype();
			}
			while (target != null);
			start.Put(id, start, NaNobj);
			return NaNobj;
search_break: ;
			return DoScriptableIncrDecr(target, id, start, value, incrDecrMask);
		}
ScriptRuntime