And() public method

Computes the bitwise AND of this container with another (intersection). This container as well as the provided container are left unaffected.
public And ( ArrayContainer value2 ) : Container
value2 ArrayContainer
return Container
Beispiel #1
0
 /// <summary>
 /// Performs an "in-place" intersection with an ArrayContainer. Since
 /// no in-place operation is actually possible, this method defaults to
 /// calling ArrayContainer's and() method with this as input.
 /// </summary>
 /// <param name="other">the ArrayContainer to intersect</param>
 public override Container IAnd(ArrayContainer other)
 {
     return(other.And(this)); // No in-place possible
 }
 /// <summary>
 /// Performs an "in-place" intersection with an ArrayContainer. Since
 /// no in-place operation is actually possible, this method defaults to
 /// calling ArrayContainer's and() method with this as input.
 /// </summary>
 /// <param name="other">the ArrayContainer to intersect</param>
 public override Container IAnd(ArrayContainer other)
 {
     return other.And(this); // No in-place possible
 }