MongoDB.Bson.IO.BsonWriter.WriteMinKey C# (CSharp) Метод

WriteMinKey() публичный абстрактный Метод

Writes a BSON MinKey to the writer.
public abstract WriteMinKey ( ) : void
Результат void
        public abstract void WriteMinKey();

Same methods

BsonWriter::WriteMinKey ( string name ) : void

Usage Example

        /// <summary>
        /// Serializes an object to a BsonWriter.
        /// </summary>
        /// <param name="bsonWriter">The BsonWriter.</param>
        /// <param name="nominalType">The nominal type.</param>
        /// <param name="value">The object.</param>
        /// <param name="options">The serialization options.</param>
        public override void Serialize(
            BsonWriter bsonWriter,
            Type nominalType,
            object value,
            IBsonSerializationOptions options)
        {
            if (value == null)
            {
                throw new ArgumentNullException("value");
            }

            var bsonMinKey = (BsonMinKey)value; // check type by casting
            bsonWriter.WriteMinKey();
        }
All Usage Examples Of MongoDB.Bson.IO.BsonWriter::WriteMinKey