Skip to content

Commit

Permalink
Clean up
Browse files Browse the repository at this point in the history
  • Loading branch information
JamesNK committed Dec 16, 2020
1 parent 35efa1d commit 598e3b7
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions csharp/src/Google.Protobuf/WritingPrimitives.cs
Expand Up @@ -46,11 +46,8 @@ namespace Google.Protobuf
[SecuritySafeCritical]
internal static class WritingPrimitives
{
#if NET5_0
internal static Encoding Utf8Encoding => Encoding.UTF8; // allows JIT to devirtualize
#else
internal static Encoding Utf8Encoding = Encoding.UTF8; // "Local" copy of Encoding.UTF8, for efficiency. (Yes, it makes a difference.)
#endif
// "Local" copy of Encoding.UTF8, for efficiency. (Yes, it makes a difference.)
internal static readonly Encoding Utf8Encoding = Encoding.UTF8;

#region Writing of values (not including tags)

Expand Down

0 comments on commit 598e3b7

Please sign in to comment.