This is an automated email from the ASF dual-hosted git repository.
blankensteiner pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/pulsar-dotpulsar.git
The following commit(s) were added to refs/heads/master by this push:
new 9cbb1d1 Add csharp_preferred_modifier_order to .editorconfig and fix
warnings. Add the changelog and readme files to the solution items.
9cbb1d1 is described below
commit 9cbb1d1d855dbbcbc54eb02a11ade9e6b5717e4a
Author: Daniel Blankensteiner <[email protected]>
AuthorDate: Mon May 31 12:50:36 2021 +0200
Add csharp_preferred_modifier_order to .editorconfig and fix warnings. Add
the changelog and readme files to the solution items.
---
.editorconfig | 3 ++-
DotPulsar.sln | 2 ++
src/DotPulsar/Schemas/BooleanSchema.cs | 4 ++--
3 files changed, 6 insertions(+), 3 deletions(-)
diff --git a/.editorconfig b/.editorconfig
index 73a27eb..9373560 100644
--- a/.editorconfig
+++ b/.editorconfig
@@ -10,6 +10,7 @@ insert_final_newline = true
# 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_space_within_single_line_array_initializer_braces =
true
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 @@ EndProject
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 @@ namespace DotPulsar.Schemas
/// </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()
{