Свойство | Тип | Описание | |
---|---|---|---|
FromDouble | System.TimeSpan | ||
FromInt32 | System.TimeSpan | ||
FromInt64 | System.TimeSpan | ||
TicksPerUnit | long | ||
ToDouble | double | ||
ToInt32 | int | ||
ToInt64 | long |
Метод | Описание | |
---|---|---|
Deserialize ( MongoDB.Bson.IO.BsonReader bsonReader, |
Deserializes an object from a BsonReader.
|
|
Serialize ( |
Serializes an object to a BsonWriter.
|
|
TimeSpanSerializer ( ) : System |
Initializes a new instance of the TimeSpanSerializer class.
|
Метод | Описание | |
---|---|---|
FromDouble ( double value, TimeSpanUnits units ) : System.TimeSpan | ||
FromInt32 ( int value, TimeSpanUnits units ) : System.TimeSpan | ||
FromInt64 ( long value, TimeSpanUnits units ) : System.TimeSpan | ||
TicksPerUnit ( TimeSpanUnits units ) : long | ||
ToDouble ( System.TimeSpan timeSpan, TimeSpanUnits units ) : double | ||
ToInt32 ( System.TimeSpan timeSpan, TimeSpanUnits units ) : int | ||
ToInt64 ( System.TimeSpan timeSpan, TimeSpanUnits units ) : long |
public Deserialize ( MongoDB.Bson.IO.BsonReader bsonReader, |
||
bsonReader | MongoDB.Bson.IO.BsonReader | The BsonReader. |
nominalType | The nominal type of the object. | |
actualType | The actual type of the object. | |
options | IBsonSerializationOptions | The serialization options. |
Результат | object |
public Serialize ( |
||
bsonWriter | The BsonWriter. | |
nominalType | The nominal type. | |
value | object | The object. |
options | IBsonSerializationOptions | The serialization options. |
Результат | void |