Beispiel #1
0
 /// <summary>
 /// Used to compare the two tasklist items
 /// </summary>
 /// <param name="item">TaskListItem Object</param>
 /// <returns>True if the items are completely equals (all properties)</returns>
 public bool Equals(TaskListItemVM item)
 {
     return(this.FullFilename.Equals(item.FullFilename, StringComparison.CurrentCultureIgnoreCase) &&
            this.Token.Equals(item.Token, StringComparison.CurrentCultureIgnoreCase) &&
            this.Description.Equals(item.Description, StringComparison.CurrentCultureIgnoreCase) &&
            this.Line == item.Line);
 }
Beispiel #2
0
 /// <summary>
 /// Used to compare the two tasklist items
 /// </summary>
 /// <param name="item">TaskListItem Object</param>
 /// <returns>True if the items match (full filename and line number)</returns>
 public bool Matches(TaskListItemVM item)
 {
     // We're only comparing the full filename and the line number
     // This will give us enough information to know it's the same task object
     return(this.FullFilename.Equals(item.FullFilename, StringComparison.CurrentCultureIgnoreCase) && this.Line == item.Line);
 }