Rhino.NativeJSON.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: 2009-05-25 16:01:00 EDT
				id = 0;
				string X = null;
				switch (s.Length)
				{
					case 5:
					{
						X = "parse";
						id = Id_parse;
						goto L_break;
					}

					case 8:
					{
						X = "toSource";
						id = Id_toSource;
						goto L_break;
					}

					case 9:
					{
						X = "stringify";
						id = Id_stringify;
						goto L_break;
					}
				}
L_break: ;
				if (X != null && X != s && !X.Equals(s))
				{
					id = 0;
				}
			}
			// #/generated#
			return id;
		}