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

Abstract base class for serialization options.
Inheritance: IBsonSerializationOptions
显示文件 Open project: egametang/Egametang

Public Methods

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

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

BsonBaseSerializationOptions ( ) : System

Initializes a new instance of the BsonBaseSerializationOptions class.

Clone ( ) : IBsonSerializationOptions

Clones the serialization options.

Freeze ( ) : IBsonSerializationOptions

Freezes the serialization options.

Protected Methods

Method Description
EnsureNotFrozen ( ) : void

Ensures that this instance is not frozen.

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

BsonBaseSerializationOptions() public method

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

Clone() public method

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

EnsureNotFrozen() protected method

Ensures that this instance is not frozen.
protected EnsureNotFrozen ( ) : void
return void

Freeze() public method

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