- convert ValueStringBuilder.cs to file-scoped namespaces
- add rule in .editorconfig
This commit is contained in:
Levan Revazashvili 2025-09-02 19:34:17 +04:00 • committed by GitHub
commit 4855a3668c
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 234 additions and 234 deletions

View file

@ -3,6 +3,7 @@ root = true
# C# files
[*.cs]
csharp_style_namespace_declarations=file_scoped:warning
# Compiler
dotnet_diagnostic.CS1998.severity = suggestion # CS1998: Missing awaits

View file

@ -8,10 +8,10 @@ using System.Runtime.InteropServices;
#nullable enable
namespace System.Text
namespace System.Text;
internal ref partial struct ValueStringBuilder
{
internal ref partial struct ValueStringBuilder
{
private char[]? _arrayToReturnToPool;
private Span<char> _chars;
private int _pos;
@ -313,5 +313,4 @@ namespace System.Text
ArrayPool<char>.Shared.Return(toReturn);
}
}
}
}