CloneOrCreateDocument<TDocument>(IDocumentFactory, TDocument, IContentProvider) Method

Syntax

public static TDocument CloneOrCreateDocument<TDocument>(this IDocumentFactory documentFactory, TDocument document, IContentProvider contentProvider = null) 
    where TDocument : FactoryDocument, IDocument, new()

Type Parameters

Name Description
TDocument

Parameters

Name Type Description
documentFactory IDocumentFactory
document TDocument
contentProvider IContentProvider

Return Value

Type Description
TDocument