CyrusBuilt.MonoPi.BitSet.ContainsAll C# (CSharp) Method

ContainsAll() public method

This method is used by EnumSet for efficiency. It checks to see if this instance contains all the same bits as the specified bit set.
public ContainsAll ( BitSet other ) : System.Boolean
other BitSet /// The bit set to check. ///
return System.Boolean
		public Boolean ContainsAll(BitSet other) {
			if (other == null) {
				return false;
			}

			Boolean result = true;
			for (Int32 i = 0; i < other._bits.Length; i++) {
				if ((this._bits[i] & other._bits[i]) != other._bits[i]) {
					result = false;
					break;
				}
			}
			return result;
		}