Added pools, IndexedFishMap, IndexedFishSet, fixed bugs related to FishTable.Remove, added Preview.png, various smaller additions, some refactoring too

This commit is contained in:
bbradson
2024-01-27 10:02:57 +01:00
parent cdf209eb02
commit af759661bd
38 changed files with 1879 additions and 642 deletions
+3 -2
View File
@@ -23,6 +23,7 @@ internal static class UtilityF
}
[DoesNotReturn]
[SuppressMessage("Usage", "CA2201")]
internal static void Throw(string message) => throw new(message);
[DoesNotReturn]
@@ -37,10 +38,10 @@ internal static class UtilityF
for (var i = 0; i < stacktrace.FrameCount; i++)
{
var assembly = stacktrace.GetFrame(i).GetMethod().ReflectedType.Assembly;
var assembly = stacktrace.GetFrame(i).GetMethod().ReflectedType?.Assembly;
fishAssembly ??= assembly;
if (assembly != fishAssembly)
if (assembly != fishAssembly && assembly != null)
return assembly;
}