Struct RenderArgs<TDocument>
Encapsulates settings needed for rendering Builder definitions.
public record struct RenderArgs<TDocument> : IEquatable<RenderArgs<TDocument>>
  Type Parameters
TDocumentThe type of the document.
- Implements
 - 
      IEquatable<RenderArgs<TDocument>>
 
- Inherited Members
 
Constructors
- RenderArgs(IBsonSerializer<TDocument>, IBsonSerializerRegistry, PathRenderArgs, bool, bool, bool, ExpressionTranslationOptions)
 Initializes a new instance of the RenderArgs<TDocument> record.
Properties
- DocumentSerializer
 Gets the document serializer.
- PathRenderArgs
 Gets the path render arguments.
- RenderDollarForm
 Gets the value indicating whether full dollar form should be rendered.
- RenderForElemMatch
 Gets the value indicating whether Render is being called for ElemMatch.
- RenderForFind
 Gets the value indicating whether Render is being called for Find.
- SerializerRegistry
 Gets the serializer registry.
- TranslationOptions
 Gets the translation options used when translation Expressions to MQL.
Methods
- GetSerializer<T>()
 Returns DocumentSerializer if it implements
IBsonSerializer{T}or resolvesIBsonSerializer{T}from SerializerRegistry.
- WithNewDocumentType<TNewDocument>(IBsonSerializer<TNewDocument>)
 Creates a new RenderArgs with new document type {TNewDocument}