diff --git a/Sharplin/Collection/Indexes.cs b/Sharplin/Collection/Indexes.cs
index 7558796..a757cff 100644
--- a/Sharplin/Collection/Indexes.cs
+++ b/Sharplin/Collection/Indexes.cs
@@ -1,8 +1,5 @@
namespace Sharplin.Collection;
-using System;
-using System.Collections.Generic;
-
public static class Indexes
{
/// of valid indices for the .
@@ -18,63 +15,67 @@ public static class Indexes
///
public static int FindIndex(this TSource[] array, Predicate match) =>
Array.FindIndex(array, match);
-
+
///
public static int FindIndex(this TSource[] array, int startIndex, Predicate match) =>
Array.FindIndex(array, startIndex, match);
-
+
///
public static int FindIndex(this TSource[] array, int startIndex, int count, Predicate match) =>
Array.FindIndex(array, startIndex, count, match);
-
+
///
public static int FindLastIndex(this TSource[] array, Predicate match) =>
Array.FindLastIndex(array, match);
-
+
///
public static int FindLastIndex(this TSource[] array, int startIndex, Predicate match) =>
Array.FindLastIndex(array, startIndex, match);
-
+
///
- public static int FindLastIndex(this TSource[] array, int startIndex, int count, Predicate match) =>
+ public static int FindLastIndex(this TSource[] array, int startIndex, int count,
+ Predicate match) =>
Array.FindLastIndex(array, startIndex, count, match);
-
+
///
public static int FindIndex(this List list, Predicate match) =>
list.FindIndex(match);
-
+
///
public static int FindIndex(this List list, int startIndex, Predicate match) =>
list.FindIndex(startIndex, match);
-
+
///
- public static int FindIndex(this List list, int startIndex, int count, Predicate match) =>
+ public static int FindIndex(this List list, int startIndex, int count,
+ Predicate match) =>
list.FindIndex(startIndex, count, match);
-
+
///
public static int FindLastIndex(this List list, Predicate match) =>
list.FindLastIndex(match);
-
+
///
public static int FindLastIndex(this List list, int startIndex, Predicate match) =>
list.FindLastIndex(startIndex, match);
-
+
///
- public static int FindLastIndex(this List list, int startIndex, int count, Predicate match) =>
+ public static int FindLastIndex(this List list, int startIndex, int count,
+ Predicate match) =>
list.FindLastIndex(startIndex, count, match);
-
+
///
- /// Searches for an element that matches the conditions defined by the specified predicate,
- /// and returns the zero-based index of the first occurrence within the entire
- /// .
+ /// Searches for an element that matches the conditions defined by the specified predicate,
+ /// and returns the zero-based index of the first occurrence within the entire
+ /// .
///
/// The to search.
///
- /// The delegate that defines the conditions of the element to search for.
+ /// The delegate that defines the conditions of the element to search for.
///
/// The type of the elements of the .
///
- /// The zero-based index of the first occurrence of an element that matches the conditions defined by match, if found; otherwise, -1.
+ /// The zero-based index of the first occurrence of an element that matches the conditions defined by match, if found;
+ /// otherwise, -1.
///
public static int FindIndex(this IEnumerable enumerable, Predicate match)
{
@@ -95,17 +96,18 @@ public static int FindIndex(this IEnumerable enumerable, Predi
}
///
- /// Searches for an element that matches the conditions defined by the specified predicate,
- /// and returns the zero-based index of the last occurrence within the entire
- /// .
+ /// Searches for an element that matches the conditions defined by the specified predicate,
+ /// and returns the zero-based index of the last occurrence within the entire
+ /// .
///
/// The to search.
///
- /// The delegate that defines the conditions of the element to search for.
+ /// The delegate that defines the conditions of the element to search for.
///
/// The type of the elements of the .
///
- /// The zero-based index of the last occurrence of an element that matches the conditions defined by match, if found; otherwise, -1.
+ /// The zero-based index of the last occurrence of an element that matches the conditions defined by match, if found;
+ /// otherwise, -1.
///
public static int FindLastIndex(this IEnumerable enumerable, Predicate match)
{
@@ -124,5 +126,4 @@ public static int FindLastIndex(this IEnumerable enumerable, P
return lastIndex;
}
-
}
\ No newline at end of file
diff --git a/Sharplin/Dictionary/Builders.cs b/Sharplin/Dictionary/Builders.cs
index b04ea32..35b966b 100644
--- a/Sharplin/Dictionary/Builders.cs
+++ b/Sharplin/Dictionary/Builders.cs
@@ -1,7 +1,5 @@
namespace Sharplin.Dictionary;
-using System.Collections.Generic;
-
/// Helper class containing methods for quickly building a dictionary.
///
///
@@ -30,8 +28,10 @@
///
public static class Builders
{
- /// Constructs a from the provided <
- /// paramref name="pairs"/>
+ ///
+ /// Constructs a from the provided
+ /// <
+ /// paramref name="pairs"/>
///
///
///
@@ -42,13 +42,13 @@ public static class Builders
///
///
/// A containing the provided
-
public static Dictionary DictionaryOf(params KeyValuePair[] pairs)
- where TKey : notnull =>
+ where TKey : notnull =>
pairs.ToDictionary(pair => pair.Key, pair => pair.Value);
- /// Constructs a from the provided
- ///
+ ///
+ /// Constructs a from the provided
+ ///
///
///
///
@@ -62,7 +62,7 @@ public static class Builders
public static Dictionary DictionaryOf(params (TKey key, TValue value)[] pairs)
where TKey : notnull =>
pairs.ToDictionary(pair => pair.Item1, pair => pair.Item2);
-
+
///
/// A of the provided and
///