Class BsonMemberMap
- Namespace
 - MongoDB.Bson.Serialization
 
- Assembly
 - MongoDB.Bson.dll
 
Represents the mapping between a field or property and a BSON element.
public class BsonMemberMap
  - Inheritance
 - 
      
      BsonMemberMap
 
- Inherited Members
 
- Extension Methods
 
Constructors
- BsonMemberMap(BsonClassMap, MemberInfo)
 Initializes a new instance of the BsonMemberMap class.
Properties
- ClassMap
 Gets the class map that this member map belongs to.
- DefaultValue
 Gets the default value.
- ElementName
 Gets the name of the element.
- Getter
 Gets the getter function.
- IdGenerator
 Gets the Id generator.
- IgnoreIfDefault
 Gets whether default values should be ignored when serialized.
- IgnoreIfNull
 Gets whether null values should be ignored when serialized.
- IsDefaultValueSpecified
 Gets whether a default value was specified.
- IsReadOnly
 Gets whether the member is readonly.
- IsRequired
 Gets whether an element is required for this member when deserialized.
- MemberInfo
 Gets the member info.
- MemberName
 Gets the name of the member.
- MemberType
 Gets the type of the member.
- MemberTypeIsBsonValue
 Gets whether the member type is a BsonValue.
- Order
 Gets the serialization order.
- Setter
 Gets the setter function.
- ShouldSerializeMethod
 Gets the method that will be called to determine whether the member should be serialized.
Methods
- ApplyDefaultValue(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.
- GetHashCode()
 Serves as the default hash function.
- GetSerializer()
 Gets the serializer.
- Reset()
 Resets the member map back to its initial state.
- SetDefaultValue(Func<object>)
 Sets the default value creator.
- SetDefaultValue(object)
 Sets the default value.
- SetElementName(string)
 Sets the name of the element.
- SetIdGenerator(IIdGenerator)
 Sets the Id generator.
- SetIgnoreIfDefault(bool)
 Sets whether default values should be ignored when serialized.
- SetIgnoreIfNull(bool)
 Sets whether null values should be ignored when serialized.
- SetIsRequired(bool)
 Sets whether an element is required for this member when deserialized
- SetOrder(int)
 Sets the serialization order.
- SetSerializer(IBsonSerializer)
 Sets the serializer.
- SetShouldSerializeMethod(Func<object, bool>)
 Sets the method that will be called to determine whether the member should be serialized.
- ShouldSerialize(object, object)
 Determines whether a value should be serialized