public WriteDateTime ( long value ) : void | ||
value | long | The number of milliseconds since the Unix epoch. |
Результат | void |
public override void WriteDateTime(long value)
{
if (Disposed) { throw new ObjectDisposedException("BsonBinaryWriter"); }
if (State != BsonWriterState.Value)
{
ThrowInvalidState("WriteDateTime", BsonWriterState.Value);
}
_buffer.WriteByte((byte)BsonType.DateTime);
WriteNameHelper();
_buffer.WriteInt64(value);
State = GetNextState();
}