Class BsonMemberMap
- Namespace
- MongoDB.Bson.Serialization
- Assembly
- MongoDB.Bson.dll
Represents the mapping between a field or property and a BSON element.
- Inheritance
-
Bson
Member Map
- Inherited Members
- Extension Methods
Constructors
- Bson
Member Map(Bson Class Map, Member Info) Initializes a new instance of the BsonMemberMap class.
Properties
- Class
Map Gets the class map that this member map belongs to.
- Default
Value Gets the default value.
- Element
Name Gets the name of the element.
- Getter
Gets the getter function.
- Id
Generator Gets the Id generator.
- Ignore
IfDefault Gets whether default values should be ignored when serialized.
- Ignore
IfNull Gets whether null values should be ignored when serialized.
- Is
Default Value Specified Gets whether a default value was specified.
- Is
Read Only Gets whether the member is readonly.
- Is
Required Gets whether an element is required for this member when deserialized.
- Member
Info Gets the member info.
- Member
Name Gets the name of the member.
- Member
Type Gets the type of the member.
- Member
Type IsBson Value Gets whether the member type is a BsonValue.
- Order
Gets the serialization order.
- Setter
Gets the setter function.
- Should
Serialize Method Gets the method that will be called to determine whether the member should be serialized.
Methods
- Apply
Default Value(object) Applies the default value to the member of an object.
- Equals(object)
Determines whether the specified object is equal to the current object.
- Freeze()
Freezes this instance.
- Get
Hash Code() Serves as the default hash function.
- Get
Serializer() Gets the serializer.
- Reset()
Resets the member map back to its initial state.
- SetDefaultValue(Func<object>)
Sets the default value creator.
- Set
Default Value(object) Sets the default value.
- Set
Element Name(string) Sets the name of the element.
- Set
IdGenerator(IId Generator) Sets the Id generator.
- Set
Ignore IfDefault(bool) Sets whether default values should be ignored when serialized.
- Set
Ignore IfNull(bool) Sets whether null values should be ignored when serialized.
- Set
IsRequired(bool) Sets whether an element is required for this member when deserialized
- Set
Order(int) Sets the serialization order.
- Set
Serializer(IBson Serializer) Sets the serializer.
- SetShouldSerializeMethod(Func<object, bool>)
Sets the method that will be called to determine whether the member should be serialized.
- Should
Serialize(object, object) Determines whether a value should be serialized