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