mirror of
https://gitlab.com/Kwoth/nadekobot.git
synced 2025-09-11 01:38:27 -04:00
Added new rules concerning type constraints and :base() calls. Reformatted attributes folder
This commit is contained in:
@@ -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>
|
||||
|
@@ -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
|
||||
|
@@ -10,7 +10,7 @@ public static class LinkedListExtensions
|
||||
{
|
||||
if (predicate(node.Value))
|
||||
return node;
|
||||
|
||||
|
||||
node = node.Next;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user