add SecuritySafeCritical attribute for Net462 to fix failing tests

pull/13160/head
Lydon Chandra 2 years ago
parent 1e2e6e935a
commit ab7e01b804
  1. 1
      csharp/src/Google.Protobuf/Collections/MapField.cs

@ -500,6 +500,7 @@ namespace Google.Protobuf.Collections
WriteTo(ref ctx, codec, listToWrite);
}
[SecuritySafeCritical]
private void WriteTo(ref WriteContext ctx, Codec codec, IEnumerable<KeyValuePair<TKey, TValue>> listKvp)
{
foreach (var entry in listKvp)

Loading…
Cancel
Save