コード例 #1
0
        public bool IsDisjointFrom(ImmutableBitArray array)
        {
            Contract.Requires(!ReferenceEquals(array, null));
            Contract.Requires(array.Length == this.Length);

            return(this.data.IsDisjointFrom(array.data));
        }
コード例 #2
0
ファイル: BitArray.cs プロジェクト: JeroenBos/JBSnorro
        /// <summary> Performs the AND operation on this array with the specified array. </summary>
        public void And(ImmutableBitArray array)
        {
            Contract.Requires(!ReferenceEquals(array, null));
            Contract.Requires(array.Length == this.Length);

            And(array.data);
        }
コード例 #3
0
 /// <summary> Gets whether all bits set in the specified array are set in this instance as well. </summary>
 /// <param name="array"> The bits to check. Must be commensurate to this array. </param>
 public bool Contains(ImmutableBitArray array)
 {
     return(this.data.Contains(array.data));
 }