Class SortByWrapper
Represents a wrapped object that can be used where an IMongoSortBy is expected (the wrapped object is expected to serialize properly).
[BsonSerializer(typeof(SortByWrapper.Serializer))]
public class SortByWrapper : BaseWrapper, IMongoSortBy
- Inheritance
-
SortByWrapper
- Implements
- Inherited Members
- Extension Methods
Constructors
SortByWrapper(object)
Initializes a new instance of the SortByWrapper class.
public SortByWrapper(object sortBy)
Parameters
sortBy
objectThe wrapped object.
Methods
Create(object)
Creates a new instance of the SortByWrapper class.
public static SortByWrapper Create(object sortBy)
Parameters
sortBy
objectThe wrapped object.
Returns
- SortByWrapper
A new instance of SortByWrapper or null.