コード例 #1
0
        /// <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));
        }
コード例 #2
0
		/// <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);
		}