Ejemplo n.º 1
0
 private static void IsNull(BitArray64 firstNumber, BitArray64 secondNumber)
 {
     if (firstNumber == null || secondNumber == null)
     {
         throw new ArgumentNullException("Object is not the right type");
     }
 }
Ejemplo n.º 2
0
        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);
        }