public abstract void WriteInt32(int value);
public override void Serialize(BsonWriter bsonWriter, Type nominalType, object value, IBsonSerializationOptions options) { if (value == null) bsonWriter.WriteInt32(0); else bsonWriter.WriteInt32(((ContentItem)value).ID); }