Class ObjectSortDefinition<TDocument>
An Object based sort.
public sealed class ObjectSortDefinition<TDocument> : SortDefinition<TDocument>
Type Parameters
TDocument
The type of the document.
- Inheritance
-
SortDefinition<TDocument>ObjectSortDefinition<TDocument>
- Inherited Members
- Extension Methods
Constructors
ObjectSortDefinition(object)
Initializes a new instance of the ObjectSortDefinition<TDocument> class.
public ObjectSortDefinition(object obj)
Parameters
obj
objectThe object.
Properties
Object
Gets the object.
public object Object { get; }
Property Value
Methods
Render(IBsonSerializer<TDocument>, IBsonSerializerRegistry, LinqProvider)
Renders the sort to a BsonDocument.
public override BsonDocument Render(IBsonSerializer<TDocument> documentSerializer, IBsonSerializerRegistry serializerRegistry, LinqProvider linqProvider)
Parameters
documentSerializer
IBsonSerializer<TDocument>The document serializer.
serializerRegistry
IBsonSerializerRegistryThe serializer registry.
linqProvider
LinqProviderThe LINQ provider.