Add csharp_preferred_modifier_order to .editorconfig and fix warnings. Add the changelog and readme files to the solution items.
diff --git a/.editorconfig b/.editorconfig
index 73a27eb..9373560 100644
--- a/.editorconfig
+++ b/.editorconfig
@@ -10,6 +10,7 @@
# Microsoft .NET properties
dotnet_sort_system_directives_first = false
+csharp_preferred_modifier_order = public,private,protected,internal,static,extern,new,virtual,abstract,sealed,override,readonly,unsafe,volatile,async:suggestion
csharp_space_after_cast = true
csharp_using_directive_placement = inside_namespace:error
@@ -29,6 +30,6 @@
resharper_use_indent_from_vs = false
resharper_sort_usings_with_system_first = false
-[{*.yaml,*.yml,*.csproj}]
+[*.{yaml,yml,csproj}]
indent_size = 2
diff --git a/DotPulsar.sln b/DotPulsar.sln
index 2ab3570..5300e55 100644
--- a/DotPulsar.sln
+++ b/DotPulsar.sln
@@ -22,6 +22,8 @@
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Solution Items", "Solution Items", "{D9434D2C-2855-4A61-87B5-22C9E1BE18E6}"
ProjectSection(SolutionItems) = preProject
.editorconfig = .editorconfig
+ CHANGELOG.md = CHANGELOG.md
+ README.md = README.md
EndProjectSection
EndProject
Global
diff --git a/src/DotPulsar/Schemas/BooleanSchema.cs b/src/DotPulsar/Schemas/BooleanSchema.cs
index 82a7844..962379e 100644
--- a/src/DotPulsar/Schemas/BooleanSchema.cs
+++ b/src/DotPulsar/Schemas/BooleanSchema.cs
@@ -25,8 +25,8 @@
/// </summary>
public sealed class BooleanSchema : ISchema<bool>
{
- private readonly static ReadOnlySequence<byte> _true;
- private readonly static ReadOnlySequence<byte> _false;
+ private static readonly ReadOnlySequence<byte> _true;
+ private static readonly ReadOnlySequence<byte> _false;
static BooleanSchema()
{