Rhino.ImporterTopLevel.FindPrototypeId C# (CSharp) Méthode

FindPrototypeId() protected méthode

protected FindPrototypeId ( string s ) : int
s string
Résultat int
		protected internal override int FindPrototypeId(string s)
		{
			int id;
			// #generated# Last update: 2007-05-09 08:15:24 EDT
			id = 0;
			string X = null;
			int c;
			int s_length = s.Length;
			if (s_length == 11)
			{
				c = s[0];
				if (c == 'c')
				{
					X = "constructor";
					id = Id_constructor;
				}
				else
				{
					if (c == 'i')
					{
						X = "importClass";
						id = Id_importClass;
					}
				}
			}
			else
			{
				if (s_length == 13)
				{
					X = "importPackage";
					id = Id_importPackage;
				}
			}
			if (X != null && X != s && !X.Equals(s))
			{
				id = 0;
			}
			goto L0_break;
L0_break: ;
			// #/generated#
			return id;
		}