Method WithNewDocumentType
WithNewDocumentType<TNewDocument>(IBsonSerializer<TNewDocument>)
Creates a new RenderArgs with new document type {TNewDocument}
public readonly RenderArgs<TNewDocument> WithNewDocumentType<TNewDocument>(IBsonSerializer<TNewDocument> serializer)
Parameters
serializer
IBsonSerializer<TNewDocument>The new serializer.
Returns
- RenderArgs<TNewDocument>
A new RenderArgs{TNewDocument} instance.
Type Parameters
TNewDocument