Class OneNoteItemEqualityComparer
- Namespace
- LinqToOneNote
- Assembly
- LinqToOneNote.dll
Use to check if two IOneNoteItems have the same id, i.e. they represent the same item in OneNote.
public class OneNoteItemEqualityComparer : IEqualityComparer<IOneNoteItem>
- Inheritance
-
OneNoteItemEqualityComparer
- Implements
- Inherited Members
Fields
Default
Returns a default equality comparer for IOneNoteItems.
public static readonly OneNoteItemEqualityComparer Default
Field Value
Methods
Equals(IOneNoteItem, IOneNoteItem)
Determines whether the specified objects are equal.
public bool Equals(IOneNoteItem x, IOneNoteItem y)
Parameters
xIOneNoteItemThe first object of type
Tto compare.yIOneNoteItemThe second object of type
Tto compare.
Returns
GetHashCode(IOneNoteItem)
Returns a hash code for the specified object.
public int GetHashCode(IOneNoteItem obj)
Parameters
objIOneNoteItemThe object for which a hash code is to be returned.
Returns
- int
A hash code for the specified object.
Exceptions
- ArgumentNullException
The type of
objis a reference type andobjis null.