diff options
author | Peter Dettman <peter.dettman@bouncycastle.org> | 2022-06-29 14:48:28 +0700 |
---|---|---|
committer | Peter Dettman <peter.dettman@bouncycastle.org> | 2022-06-29 14:48:28 +0700 |
commit | dfe15d07f82efdaa4cbd68b4180304b6e479c592 (patch) | |
tree | 227e73df84e77ac4b96ebfbe5cf37027aa04156c /crypto/src/util | |
parent | Cleanup NewLine handling (diff) | |
download | BouncyCastle.NET-ed25519-dfe15d07f82efdaa4cbd68b4180304b6e479c592.tar.xz |
Add Objects class
Diffstat (limited to 'crypto/src/util')
-rw-r--r-- | crypto/src/util/Objects.cs | 10 | ||||
-rw-r--r-- | crypto/src/util/Platform.cs | 5 |
2 files changed, 10 insertions, 5 deletions
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(); |