From f39c54f71e8e9f053b7efb6e69b1429944badba4 Mon Sep 17 00:00:00 2001 From: Peter Dettman Date: Tue, 11 Apr 2023 14:47:22 +0700 Subject: Platform guards for ReadOnlySet --- crypto/src/util/collections/CollectionUtilities.cs | 2 ++ 1 file changed, 2 insertions(+) (limited to 'crypto/src/util/collections/CollectionUtilities.cs') diff --git a/crypto/src/util/collections/CollectionUtilities.cs b/crypto/src/util/collections/CollectionUtilities.cs index a1fb0e949..6f94c4409 100644 --- a/crypto/src/util/collections/CollectionUtilities.cs +++ b/crypto/src/util/collections/CollectionUtilities.cs @@ -75,10 +75,12 @@ namespace Org.BouncyCastle.Utilities.Collections return new ReadOnlyListProxy(l); } +#if NETCOREAPP1_0_OR_GREATER || NET40_OR_GREATER || NETSTANDARD1_0_OR_GREATER public static ISet ReadOnly(ISet s) { return new ReadOnlySetProxy(s); } +#endif public static bool Remove(IDictionary d, K k, out V v) { -- cgit 1.5.1