diff options
author | Peter Dettman <peter.dettman@bouncycastle.org> | 2019-08-01 15:20:29 +0700 |
---|---|---|
committer | Peter Dettman <peter.dettman@bouncycastle.org> | 2019-08-01 15:20:29 +0700 |
commit | abe0572ea59671d9444b61bf3ad4458518c2805d (patch) | |
tree | ec5fcb0c70214b941c036589be9656ca79d24a3b /crypto/src/util | |
parent | Rework some of the ImplSquare methods in custom binary curves (diff) | |
download | BouncyCastle.NET-ed25519-abe0572ea59671d9444b61bf3ad4458518c2805d.tar.xz |
Misc. ASN.1 updates from bc-java
Diffstat (limited to 'crypto/src/util')
-rw-r--r-- | crypto/src/util/Arrays.cs | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/crypto/src/util/Arrays.cs b/crypto/src/util/Arrays.cs index aa8d31df4..5d62d7174 100644 --- a/crypto/src/util/Arrays.cs +++ b/crypto/src/util/Arrays.cs @@ -721,5 +721,19 @@ namespace Org.BouncyCastle.Utilities return result; } + + public static bool IsNullOrContainsNull(object[] array) + { + if (null == array) + return true; + + int count = array.Length; + for (int i = 0; i < count; ++i) + { + if (null == array[i]) + return true; + } + return false; + } } } |