C# Class MongoDB.Bson.Serialization.Options.DictionarySerializationOptions

Represents serialization options for a Dictionary value.
Inheritance: BsonBaseSerializationOptions
Datei anzeigen Open project: egametang/Egametang Class Usage Examples

Private Properties

Property Type Description

Public Methods

Method Description
ApplyAttribute ( IBsonSerializer serializer, Attribute attribute ) : void

Apply an attribute to these serialization options and modify the options accordingly.

Clone ( ) : IBsonSerializationOptions

Clones the serialization options.

DictionarySerializationOptions ( ) : System

Initializes a new instance of the DictionarySerializationOptions class.

DictionarySerializationOptions ( DictionaryRepresentation representation ) : System

Initializes a new instance of the DictionarySerializationOptions class.

DictionarySerializationOptions ( DictionaryRepresentation representation, KeyValuePairSerializationOptions keyValuePairSerializationOptions ) : System

Initializes a new instance of the DictionarySerializationOptions class.

Freeze ( ) : IBsonSerializationOptions

Freezes the serialization options.

Method Details

ApplyAttribute() public method

Apply an attribute to these serialization options and modify the options accordingly.
public ApplyAttribute ( IBsonSerializer serializer, Attribute attribute ) : void
serializer IBsonSerializer The serializer that these serialization options are for.
attribute System.Attribute The serialization options attribute.
return void

Clone() public method

Clones the serialization options.
public Clone ( ) : IBsonSerializationOptions
return IBsonSerializationOptions

DictionarySerializationOptions() public method

Initializes a new instance of the DictionarySerializationOptions class.
public DictionarySerializationOptions ( ) : System
return System

DictionarySerializationOptions() public method

Initializes a new instance of the DictionarySerializationOptions class.
public DictionarySerializationOptions ( DictionaryRepresentation representation ) : System
representation DictionaryRepresentation The representation to use for a Dictionary.
return System

DictionarySerializationOptions() public method

Initializes a new instance of the DictionarySerializationOptions class.
public DictionarySerializationOptions ( DictionaryRepresentation representation, KeyValuePairSerializationOptions keyValuePairSerializationOptions ) : System
representation DictionaryRepresentation The representation to use for a Dictionary.
keyValuePairSerializationOptions KeyValuePairSerializationOptions The serialization options for the key/value pairs in the dictionary.
return System

Freeze() public method

Freezes the serialization options.
public Freeze ( ) : IBsonSerializationOptions
return IBsonSerializationOptions