Rhino.NativeBoolean.FindPrototypeId C# (CSharp) Method

FindPrototypeId() protected method

protected FindPrototypeId ( string s ) : int
s string
return int
		protected internal override int FindPrototypeId(string s)
		{
			int id;
			// #generated# Last update: 2007-05-09 08:15:31 EDT
			id = 0;
			string X = null;
			int c;
			int s_length = s.Length;
			if (s_length == 7)
			{
				X = "valueOf";
				id = Id_valueOf;
			}
			else
			{
				if (s_length == 8)
				{
					c = s[3];
					if (c == 'o')
					{
						X = "toSource";
						id = Id_toSource;
					}
					else
					{
						if (c == 't')
						{
							X = "toString";
							id = Id_toString;
						}
					}
				}
				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#
			return id;
		}