System.Web.Compilation.TagAttributes.CaseInsensitiveSearch C# (CSharp) Method

CaseInsensitiveSearch() private method

private CaseInsensitiveSearch ( string key ) : int
key string
return int
		int CaseInsensitiveSearch (string key)
		{
			// Hope not to have many attributes when the tag is not a server tag...
			for (int i = 0; i < keys.Count; i++){
				if (0 == String.Compare ((string) keys [i], key, true, Helpers.InvariantCulture))
					return i;
			}
			return -1;
		}