Esempio n. 1
0
 /// <summary>
 /// Returns true if this object is equal to <c>obj</c>.
 /// </summary>
 /// <param name="obj">Object you wish to compare to.</param>
 /// <returns>true if this object is equal to <c>obj</c>.</returns>
 public override bool Equals(object obj)
 {
     if (obj != null && obj.GetType().Equals(this.GetType()))
     {
         WelcomeModel other = obj as WelcomeModel;
         if ((object)other != null)
         {
             return(Equals(other));
         }
     }
     return(false);
 }
Esempio n. 2
0
 /// <summary>
 /// Returns true if this object is equal to <c>obj</c>.
 /// </summary>
 /// <remarks>
 /// This is an overloaded Equals implementation taking a
 /// WelcomeModel object to improve performance as a cast is not
 /// required.
 /// </remarks>
 /// <param name="other">
 /// WelcomeModel object to compare against.
 /// </param>
 public bool Equals(WelcomeModel other)
 {
     return(true);
 }
Esempio n. 3
0
 /// <summary>
 /// Returns true if this object is equal to <c>obj</c>.
 /// </summary>
 /// <remarks>
 /// This is an overloaded Equals implementation taking a
 /// WelcomeModel object to improve performance as a cast is not
 /// required.
 /// </remarks>
 /// <param name="other">
 /// WelcomeModel object to compare against.
 /// </param>
 public bool Equals(WelcomeModel other) {
     return true;
 }