Ejemplo n.º 1
0
 /// <summary>
 /// Determines whether the specified value equels to this instance.
 /// </summary>
 /// <param name="i_Other">The other <see cref="Pair{T1, T2}"/> instance.</param>
 /// <returns><c>true</c> if the specified value is equal to this instance; otherwise, <c>false</c>.</returns>
 public bool Equals(PairStruct <T1, T2> i_Other)
 {
     return(this == i_Other);
 }
Ejemplo n.º 2
0
        /// <summary>
        /// Determines whether the specified <see cref="System.Object" />, is equal to this instance.
        /// </summary>
        /// <param name="i_Other">The <see cref="System.Object" /> to compare with this instance.</param>
        /// <returns>
        ///   <c>true</c> if the specified <see cref="System.Object" /> is equal to this instance; otherwise, <c>false</c>.
        /// </returns>
        public override bool Equals(object i_Other)
        {
            PairStruct <T1, T2> otherPair = (PairStruct <T1, T2>)i_Other;

            return(this == otherPair);
        }