Пример #1
0
 public bool Equals(
     byte[] x,
     byte[] y
     )
 {
     return(GenericOps <byte> .Equals(x, y));
 }
Пример #2
0
        ///////////////////////////////////////////////////////////////////////////////////////////////

        #region System.Object Overrides
        public override bool Equals(object obj)
        {
            Number number = obj as Number;

            if (number != null)
            {
                return(GenericOps <object> .Equals(this.Value, number.Value));
            }
            else
            {
                return(false);
            }
        }
Пример #3
0
        ///////////////////////////////////////////////////////////////////////

        #region System.Object Overrides
        public override bool Equals(
            object obj
            )
        {
            IAnyPair <T1, T2> anyPair = obj as IAnyPair <T1, T2>;

            if (anyPair != null)
            {
                return(GenericOps <T1> .Equals(this.X, anyPair.X) &&
                       GenericOps <T2> .Equals(this.Y, anyPair.Y));
            }
            else
            {
                return(false);
            }
        }
Пример #4
0
        ///////////////////////////////////////////////////////////////////////

        #region System.Object Overrides
        public override bool Equals(
            object obj
            )
        {
            IAnyTriplet <T1, T2, T3> anyTriplet = obj as IAnyTriplet <T1, T2, T3>;

            if (anyTriplet != null)
            {
                return(GenericOps <T1> .Equals(this.X, anyTriplet.X) &&
                       GenericOps <T2> .Equals(this.Y, anyTriplet.Y) &&
                       GenericOps <T3> .Equals(this.Z, anyTriplet.Z));
            }
            else
            {
                return(false);
            }
        }