Exemplo n.º 1
0
        /// <summary>
        /// Returns the number of values in this <see cref="BitArray" /> whose value is <see langword="false" />.
        /// </summary>
        /// <param name="array">The <see cref="BitArray" /> to check.</param>
        /// <returns>
        /// The number of values whose value is <see langword="false" />.
        /// </returns>
        public static int CountFalse(this BitArray array)
        {
            Check.ArgumentNull(array, nameof(array));

            return(array.Length - array.CountTrue());
        }