mirror of
https://github.com/nsnail/ns-ext.git
synced 2025-12-16 05:55:49 +08:00
feat: ✨ 异步累加器函数 (#17)
This commit is contained in:
@@ -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
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user