From dfe15d07f82efdaa4cbd68b4180304b6e479c592 Mon Sep 17 00:00:00 2001 From: Peter Dettman Date: Wed, 29 Jun 2022 14:48:28 +0700 Subject: Add Objects class --- crypto/src/util/Objects.cs | 10 ++++++++++ crypto/src/util/Platform.cs | 5 ----- 2 files changed, 10 insertions(+), 5 deletions(-) create mode 100644 crypto/src/util/Objects.cs (limited to 'crypto/src/util') diff --git a/crypto/src/util/Objects.cs b/crypto/src/util/Objects.cs new file mode 100644 index 000000000..4d49ac9de --- /dev/null +++ b/crypto/src/util/Objects.cs @@ -0,0 +1,10 @@ +namespace Org.BouncyCastle.Utilities +{ + public static class Objects + { + public static int GetHashCode(object obj) + { + return null == obj ? 0 : obj.GetHashCode(); + } + } +} diff --git a/crypto/src/util/Platform.cs b/crypto/src/util/Platform.cs index 7e79c64e1..75b728bd9 100644 --- a/crypto/src/util/Platform.cs +++ b/crypto/src/util/Platform.cs @@ -26,11 +26,6 @@ namespace Org.BouncyCastle.Utilities } } - internal static int GetHashCode(object obj) - { - return null == obj ? 0 : obj.GetHashCode(); - } - internal static void Dispose(IDisposable d) { d.Dispose(); -- cgit 1.5.1