First commit

This commit is contained in:
Misaki
2024-11-02 17:58:52 +09:00
commit e645a5327b
153 changed files with 3729 additions and 0 deletions

View File

@@ -0,0 +1,21 @@
using System;
using System.Collections.ObjectModel;
namespace Misaki.GraphView
{
public static class ReadOnlyCollectionExtension
{
public static int FindIndex<T>(this ReadOnlyCollection<T> collection, Predicate<T> match)
{
for (var i = 0; i < collection.Count; i++)
{
if (match(collection[i]))
{
return i;
}
}
return -1;
}
}
}