feat: 异步累加器函数 (#17)

This commit is contained in:
2024-03-01 11:24:47 +08:00
committed by GitHub
parent 00164b02d9
commit 3de9d3b8d0
7 changed files with 29 additions and 53 deletions

View File

@ -26,7 +26,7 @@ public static class StreamExtensions
public static bool IsTextStream(this Stream me)
{
#pragma warning disable IDE0300
return me.FirstByteIndex(new byte[] { 0x00, 0xff }) < 0;
return me.FirstByteIndex([0x00, 0xff]) < 0;
#pragma warning restore IDE0300
}
}