Table of Contents

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

OneNoteItemEqualityComparer

Methods

Equals(IOneNoteItem, IOneNoteItem)

Determines whether the specified objects are equal.

public bool Equals(IOneNoteItem x, IOneNoteItem y)

Parameters

x IOneNoteItem

The first object of type T to compare.

y IOneNoteItem

The second object of type T to compare.

Returns

bool

true if the specified objects are equal; otherwise, false.

GetHashCode(IOneNoteItem)

Returns a hash code for the specified object.

public int GetHashCode(IOneNoteItem obj)

Parameters

obj IOneNoteItem

The object for which a hash code is to be returned.

Returns

int

A hash code for the specified object.

Exceptions

ArgumentNullException

The type of obj is a reference type and obj is null.

See Also