CyrusBuilt.MonoPi.BitSet.ContainsAll C# (CSharp) 메소드

ContainsAll() 공개 메소드

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. ///
리턴 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;
		}