Exemple #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()))
     {
         NoteEditorModel other = obj as NoteEditorModel;
         if ((object)other != null)
         {
             return(Equals(other));
         }
     }
     return(false);
 }
 /// <summary>
 /// Returns true if this object is equal to <c>obj</c>.
 /// </summary>
 /// <remarks>
 /// This is an overloaded Equals implementation taking a
 /// NoteEditorModel object to improve performance as a cast is not
 /// required.
 /// </remarks>
 /// <param name="other">
 /// NoteEditorModel object to compare against.
 /// </param>
 public bool Equals(NoteEditorModel other)
 {
     return other.Note.Equals(Note);
 }
Exemple #3
0
 /// <summary>
 /// Returns true if this object is equal to <c>obj</c>.
 /// </summary>
 /// <remarks>
 /// This is an overloaded Equals implementation taking a
 /// NoteEditorModel object to improve performance as a cast is not
 /// required.
 /// </remarks>
 /// <param name="other">
 /// NoteEditorModel object to compare against.
 /// </param>
 public bool Equals(NoteEditorModel other)
 {
     return(other.Note.Equals(Note));
 }