Skip to content

Commit 0ce5205

Browse files
Daniel Hegenerrstam
Daniel Hegener
authored andcommitted
CSHARP-4028: Reduced allocations by eliminating a lambda closure
1 parent 4c67659 commit 0ce5205

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/MongoDB.Bson/IO/JsonWriter.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -935,7 +935,7 @@ private string GuidToString(BsonBinarySubType subType, byte[] bytes, GuidReprese
935935
}
936936
}
937937

938-
private bool NeedsEscaping(char c)
938+
private static bool NeedsEscaping(char c)
939939
{
940940
switch (c)
941941
{

0 commit comments

Comments
 (0)