Skip to content

Commit

Permalink
add SecuritySafeCritical attribute for Net462 to fix failing tests
Browse files Browse the repository at this point in the history
  • Loading branch information
fmg-lydonchandra committed Jul 3, 2023
1 parent 1e2e6e9 commit ab7e01b
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions csharp/src/Google.Protobuf/Collections/MapField.cs
Original file line number Diff line number Diff line change
Expand Up @@ -500,6 +500,7 @@ public void WriteTo(ref WriteContext ctx, Codec codec)
WriteTo(ref ctx, codec, listToWrite);
}

[SecuritySafeCritical]
private void WriteTo(ref WriteContext ctx, Codec codec, IEnumerable<KeyValuePair<TKey, TValue>> listKvp)
{
foreach (var entry in listKvp)
Expand Down

0 comments on commit ab7e01b

Please sign in to comment.