Cleanup.
This commit is contained in:
1 parent
12476d7a00
commit
fd38907eaa
4 files changed
+19
-3
No files matched your search
@@ -1,8 +1,12 @@
|
|||||||
using System.Numerics;
|
// Ignore Spelling: zzz
|
||||||
|
|
||||||
|
using System.Numerics;
|
||||||
|
|
||||||
namespace Recyclable.Collections
|
namespace Recyclable.Collections
|
||||||
{
|
{
|
||||||
|
#pragma warning disable IDE1006 // This intentional so that it shows at the end of IntelliSense list
|
||||||
public static class zzzRecyclableListCompatibilityListFind
|
public static class zzzRecyclableListCompatibilityListFind
|
||||||
|
#pragma warning restore IDE1006 // Naming Styles
|
||||||
{
|
{
|
||||||
public static bool Exists<T>(this RecyclableList<T> list, Predicate<T> match)
|
public static bool Exists<T>(this RecyclableList<T> list, Predicate<T> match)
|
||||||
{
|
{
|
||||||
|
|||||||
+5
-1
@@ -1,6 +1,10 @@
|
|||||||
namespace Recyclable.Collections
|
// Ignore Spelling: zzz
|
||||||
|
|
||||||
|
namespace Recyclable.Collections
|
||||||
{
|
{
|
||||||
|
#pragma warning disable IDE1006 // This intentional so that it shows at the end of IntelliSense list
|
||||||
public static class zzzRecyclableListCompatibilityListIndexOf
|
public static class zzzRecyclableListCompatibilityListIndexOf
|
||||||
|
#pragma warning restore IDE1006 // Naming Styles
|
||||||
{
|
{
|
||||||
public static int IndexOf<T>(this RecyclableList<T> list, T item, int index) => list._count != 0
|
public static int IndexOf<T>(this RecyclableList<T> list, T item, int index) => list._count != 0
|
||||||
? Array.IndexOf(list._memoryBlock, item, index, list._count - index)
|
? Array.IndexOf(list._memoryBlock, item, index, list._count - index)
|
||||||
|
|||||||
+4
@@ -1,10 +1,14 @@
|
|||||||
|
// Ignore Spelling: zzz
|
||||||
|
|
||||||
using System.Collections;
|
using System.Collections;
|
||||||
using System.Numerics;
|
using System.Numerics;
|
||||||
using System.Runtime.CompilerServices;
|
using System.Runtime.CompilerServices;
|
||||||
|
|
||||||
namespace Recyclable.Collections
|
namespace Recyclable.Collections
|
||||||
{
|
{
|
||||||
|
#pragma warning disable IDE1006 // This intentional so that it shows at the end of IntelliSense list
|
||||||
public static class zzzRecyclableListCompatibilityListInsertRange
|
public static class zzzRecyclableListCompatibilityListInsertRange
|
||||||
|
#pragma warning restore IDE1006 // Naming Styles
|
||||||
{
|
{
|
||||||
private static void InsertRangeEnumerated<T>(this RecyclableList<T> list, int index, IEnumerable<T> items, int growByCount)
|
private static void InsertRangeEnumerated<T>(this RecyclableList<T> list, int index, IEnumerable<T> items, int growByCount)
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -1,11 +1,15 @@
|
|||||||
using System.Collections.ObjectModel;
|
// Ignore Spelling: zzz
|
||||||
|
|
||||||
|
using System.Collections.ObjectModel;
|
||||||
using System.Numerics;
|
using System.Numerics;
|
||||||
using Recyclable.Collections.Pools;
|
using Recyclable.Collections.Pools;
|
||||||
|
|
||||||
namespace Recyclable.Collections
|
namespace Recyclable.Collections
|
||||||
{
|
{
|
||||||
|
|
||||||
|
#pragma warning disable IDE1006 // This intentional so that it shows at the end of IntelliSense list
|
||||||
public static class zzzRecyclableListCompatibilityList
|
public static class zzzRecyclableListCompatibilityList
|
||||||
|
#pragma warning restore IDE1006 // Naming Styles
|
||||||
{
|
{
|
||||||
public static ReadOnlyCollection<T> AsReadOnly<T>(this RecyclableList<T> list) => new(list);
|
public static ReadOnlyCollection<T> AsReadOnly<T>(this RecyclableList<T> list) => new(list);
|
||||||
|
|
||||||
|
|||||||
Reference in new issue
Block a user