private static void IsNull(BitArray64 firstNumber, BitArray64 secondNumber) { if (firstNumber == null || secondNumber == null) { throw new ArgumentNullException("Object is not the right type"); } }
public override bool Equals(object obj) { BitArray64 comparisonNumber = obj as BitArray64; if (comparisonNumber == null) { throw new ArgumentNullException("Object is not the right type"); } if (this.Number == comparisonNumber.Number) { return(true); } return(false); }