Rhino.Arguments.FindInstanceIdInfo C# (CSharp) Method

FindInstanceIdInfo() protected method

protected FindInstanceIdInfo ( string s ) : int
s string
return int
		protected internal override int FindInstanceIdInfo(string s)
		{
			int id;
			// #generated# Last update: 2010-01-06 05:48:21 ARST
			id = 0;
			string X = null;
			int c;
			int s_length = s.Length;
			if (s_length == 6)
			{
				c = s[5];
				if (c == 'e')
				{
					X = "callee";
					id = Id_callee;
				}
				else
				{
					if (c == 'h')
					{
						X = "length";
						id = Id_length;
					}
					else
					{
						if (c == 'r')
						{
							X = "caller";
							id = Id_caller;
						}
					}
				}
			}
			else
			{
				if (s_length == 11)
				{
					X = "constructor";
					id = Id_constructor;
				}
			}
			if (X != null && X != s && !X.Equals(s))
			{
				id = 0;
			}
			goto L0_break;
L0_break: ;
			// #/generated#
			if (id == 0)
			{
				return base.FindInstanceIdInfo(s);
			}
			int attr;
			switch (id)
			{
				case Id_callee:
				case Id_caller:
				case Id_length:
				case Id_constructor:
				{
					attr = DONTENUM;
					break;
				}

				default:
				{
					throw new InvalidOperationException();
				}
			}
			return InstanceIdInfo(attr, id);
		}