chore: Use var everywhere (#2294)
This commit is contained in:
parent
0b34cc4417
commit
ebaf104935
267 changed files with 873 additions and 873 deletions
|
|
@ -125,7 +125,7 @@ public static class TextEncoding
|
|||
var charCount = encoding.GetMaxCharCount(span.Length);
|
||||
|
||||
char[] rentedChars = null;
|
||||
Span<char> chars = charCount <= 256
|
||||
var chars = charCount <= 256
|
||||
? stackalloc char[charCount]
|
||||
: rentedChars = STArrayPool<char>.Shared.Rent(charCount);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue