diff --git a/Source/MoreDotNet/Extentions/Common/ListExtentions.cs b/Source/MoreDotNet/Extentions/Common/ListExtentions.cs index 74995c2..34480f4 100644 --- a/Source/MoreDotNet/Extentions/Common/ListExtentions.cs +++ b/Source/MoreDotNet/Extentions/Common/ListExtentions.cs @@ -7,6 +7,16 @@ public static class ListExtentions { + /// + /// Performs a binary search over a sorted . If the item is not found throws an . + /// + /// The type of items in the list. + /// The type of the key we are searching for. + /// The instance on which the extension method is called. + /// A function for selecting our key. + /// The key we are searching for. + /// If the key is not found. + /// The element containing our key. public static T BinarySearch(this IList list, Func keySelector, TKey key) where TKey : IComparable { @@ -44,6 +54,9 @@ public static T BinarySearch(this IList list, Func keySelec /// /// Convert a List{T} to a DataTable. /// + /// The item type of the + /// The instance on which the extension method is called. + /// A with the contents of the public static DataTable ToDataTable(this IList list) { var tb = new DataTable(typeof(T).Name); @@ -74,10 +87,9 @@ public static DataTable ToDataTable(this IList list) /// /// Performs an insertion sort on this list. /// - /// The type of the list supplied. - /// the list to sort. + /// The item type of the + /// The instance on which the extension method is called. /// the method for comparison of two elements. - /// public static void InsertionSort(this IList list, Comparison comparison) { for (int i = 2; i < list.Count; i++) @@ -94,9 +106,9 @@ public static void InsertionSort(this IList list, Comparison comparison /// /// Inserts an Item into a list at the first place that the expression fails. If it is true in all cases, then the item is appended to the end of the list. /// - /// - /// - /// + /// The item type of the + /// The instance on which the extension method is called. + /// Object being inserted. /// The specified function that determines when the should be added. public static void InsertWhere(this IList list, T obj, Func predicate) {