/// <summary> /// Returns the index of an item with the specified path in the collection. /// </summary> /// <param name="Path">The path of the item to find.</param> /// <returns>Returns the index of the item with the path.</returns> public int IndexOf(string path) { // Create a comparer for sorting and searching ItemSettingComparer Comparer = new ItemSettingComparer(); InnerList.Sort(Comparer); return(InnerList.BinarySearch(path, Comparer)); }
/// <summary> /// Returns the index of an item with the specified path in the collection. /// </summary> /// <param name="Path">The path of the item to find.</param> /// <returns>Returns the index of the item with the path.</returns> public int IndexOf(string path) { // Create a comparer for sorting and searching ItemSettingComparer Comparer = new ItemSettingComparer(); InnerList.Sort(Comparer); return InnerList.BinarySearch(path, Comparer); }