Rhino.BaseFunction.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;
			// #string_id_map#
			// #generated# Last update: 2009-07-24 16:00:52 EST
			id = 0;
			string X = null;
			int c;
			switch (s.Length)
			{
				case 4:
				{
					c = s[0];
					if (c == 'b')
					{
						X = "bind";
						id = Id_bind;
					}
					else
					{
						if (c == 'c')
						{
							X = "call";
							id = Id_call;
						}
					}
					goto L_break;
				}

				case 5:
				{
					X = "apply";
					id = Id_apply;
					goto L_break;
				}

				case 8:
				{
					c = s[3];
					if (c == 'o')
					{
						X = "toSource";
						id = Id_toSource;
					}
					else
					{
						if (c == 't')
						{
							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;
		}