IdEquals<TDocument>(TDocument, TDocument) Method
Determines if a document is equal by comparing their IDs.
Namespace
Statiq.Common
Containing Type
IDocumentExtensions

Syntax

public static bool IdEquals<TDocument>(this TDocument document, TDocument other) 
    where TDocument : IDocument

Type Parameters

Name Description
TDocument

Parameters

Name Type Description
document TDocument The first document.
other TDocument The second document.

Return Value

Type Description
bool true if the documents have the same ID (they come from the same initial document), false otherwise.