Rhino.NativeScript.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:16:01 EDT
			id = 0;
			string X = null;
			switch (s.Length)
			{
				case 4:
				{
					X = "exec";
					id = Id_exec;
					goto L_break;
				}

				case 7:
				{
					X = "compile";
					id = Id_compile;
					goto L_break;
				}

				case 8:
				{
					X = "toString";
					id = Id_toString;
					goto L_break;
				}

				case 11:
				{
					X = "constructor";
					id = Id_constructor;
					goto L_break;
				}
			}
L_break: ;
			if (X != null && X != s && !X.Equals(s))
			{
				id = 0;
			}
			goto L0_break;
L0_break: ;
			// #/generated#
			return id;
		}