Added new rules concerning type constraints and :base() calls. Reformatted attributes folder

This commit is contained in:
Kwoth
2021-12-26 17:45:26 +01:00
parent d5fd6aae8e
commit 9ae030a5c5
10 changed files with 39 additions and 21 deletions

View File

@@ -4,9 +4,6 @@
// and they get looped through constantly
public static class ArrayExtensions
{
private static int x = 0;
/// <summary>
/// Create a new array from the old array + new element at the end
/// </summary>

View File

@@ -68,7 +68,8 @@ public static class EnumerableExtensions
this IEnumerable<KeyValuePair<TKey, TValue>> dict)
=> new(dict);
public static IndexedCollection<T> ToIndexed<T>(this IEnumerable<T> enumerable) where T : class, IIndexed
public static IndexedCollection<T> ToIndexed<T>(this IEnumerable<T> enumerable)
where T : class, IIndexed
=> new(enumerable);
// todo use this extension instead of Task.WhenAll

View File

@@ -10,7 +10,7 @@ public static class LinkedListExtensions
{
if (predicate(node.Value))
return node;
node = node.Next;
}