메소드 | 설명 | |
---|---|---|
ApplyDefaultValue ( object obj ) : void |
Applies the default value to the member of an object.
|
|
BsonMemberMap ( BsonClassMap classMap, |
Initializes a new instance of the BsonMemberMap class.
|
|
Freeze ( ) : void |
Freezes this instance.
|
|
GetSerializer ( |
Gets the serializer.
|
|
Reset ( ) : |
Resets the member map back to its initial state.
|
|
SetDefaultValue ( Func |
Sets the default value creator.
|
|
SetDefaultValue ( object defaultValue ) : BsonMemberMap |
Sets the default value.
|
|
SetElementName ( string elementName ) : BsonMemberMap |
Sets the name of the element.
|
|
SetIdGenerator ( IIdGenerator idGenerator ) : BsonMemberMap |
Sets the Id generator.
|
|
SetIgnoreIfDefault ( bool ignoreIfDefault ) : BsonMemberMap |
Sets whether default values should be ignored when serialized.
|
|
SetIgnoreIfNull ( bool ignoreIfNull ) : BsonMemberMap |
Sets whether null values should be ignored when serialized.
|
|
SetIsRequired ( bool isRequired ) : BsonMemberMap |
Sets whether an element is required for this member when deserialized
|
|
SetOrder ( int order ) : BsonMemberMap |
Sets the serialization order.
|
|
SetRepresentation ( BsonType representation ) : BsonMemberMap |
Sets the external representation.
|
|
SetSerializationOptions ( IBsonSerializationOptions serializationOptions ) : BsonMemberMap |
Sets the serialization options.
|
|
SetSerializer ( IBsonSerializer serializer ) : BsonMemberMap |
Sets the serializer.
|
|
SetShouldSerializeMethod ( bool>.Func |
Sets the method that will be called to determine whether the member should be serialized.
|
|
ShouldSerialize ( object obj, object value ) : bool |
Determines whether a value should be serialized
|
메소드 | 설명 | |
---|---|---|
GetDefaultValue ( |
||
GetDiscriminatorConvention ( ) : IDiscriminatorConvention |
Gets the discriminator convention for the member type.
|
|
GetFieldSetter ( ) : object>.Action | ||
GetGetter ( ) : object>.Func | ||
GetPropertySetter ( ) : object>.Action | ||
ThrowFrozenException ( ) : void |
public ApplyDefaultValue ( object obj ) : void | ||
obj | object | The object. |
리턴 | void |
public BsonMemberMap ( BsonClassMap classMap, |
||
classMap | BsonClassMap | The class map this member map belongs to. |
memberInfo | The member info. | |
리턴 | System |
public GetSerializer ( |
||
actualType | The actual type of the member's value. | |
리턴 | IBsonSerializer |
public SetDefaultValue ( Func | ||
defaultValueCreator | Func | The default value creator (note: the supplied delegate must be thread safe). |
리턴 | BsonMemberMap |
public SetDefaultValue ( object defaultValue ) : BsonMemberMap | ||
defaultValue | object | The default value. |
리턴 | BsonMemberMap |
public SetElementName ( string elementName ) : BsonMemberMap | ||
elementName | string | The name of the element. |
리턴 | BsonMemberMap |
public SetIdGenerator ( IIdGenerator idGenerator ) : BsonMemberMap | ||
idGenerator | IIdGenerator | The Id generator. |
리턴 | BsonMemberMap |
public SetIgnoreIfDefault ( bool ignoreIfDefault ) : BsonMemberMap | ||
ignoreIfDefault | bool | Whether default values should be ignored when serialized. |
리턴 | BsonMemberMap |
public SetIgnoreIfNull ( bool ignoreIfNull ) : BsonMemberMap | ||
ignoreIfNull | bool | Wether null values should be ignored when serialized. |
리턴 | BsonMemberMap |
public SetIsRequired ( bool isRequired ) : BsonMemberMap | ||
isRequired | bool | Whether an element is required for this member when deserialized |
리턴 | BsonMemberMap |
public SetOrder ( int order ) : BsonMemberMap | ||
order | int | The serialization order. |
리턴 | BsonMemberMap |
public SetRepresentation ( BsonType representation ) : BsonMemberMap | ||
representation | BsonType | The external representation. |
리턴 | BsonMemberMap |
public SetSerializationOptions ( IBsonSerializationOptions serializationOptions ) : BsonMemberMap | ||
serializationOptions | IBsonSerializationOptions | The serialization options. |
리턴 | BsonMemberMap |
public SetSerializer ( IBsonSerializer serializer ) : BsonMemberMap | ||
serializer | IBsonSerializer | The serializer. |
리턴 | BsonMemberMap |
public SetShouldSerializeMethod ( bool>.Func | ||
shouldSerializeMethod | bool>.Func | The method. |
리턴 | BsonMemberMap |
public ShouldSerialize ( object obj, object value ) : bool | ||
obj | object | The object. |
value | object | The value. |
리턴 | bool |