Enable net analyzers and add stylecop

This commit is contained in:
js6pak committed 2022-10-09 16:09:02 +02:00
1 parent 81eea3eee2
commit ed05e563f0
27 files changed
+298 -48

No files matched your search

+1 -1
View File
@@ -84,7 +84,7 @@ public class AssetBundleBenchmarks
var length = (int) stream.Length;
var array = new Il2CppStructArray<byte>(length);
if (stream.Read(array.ToSpan()) < length) throw new Exception("Failed to read in full");
if (stream.Read(array.ToSpan()) < length) throw new IOException("Failed to read in full");
return LoadAll(AssetBundle.LoadFromMemory(array));
}