public void WriteObjectId(byte[] value)
{
ValidationUtils.ArgumentNotNull(value, nameof(value));
if (value.Length != 12)
{
throw JsonWriterException.Create(this, "An object id must be 12 bytes", null);
}
// hack to update the writer state
UpdateScopeWithFinishedValue();
AutoComplete(JsonToken.Undefined);
AddValue(value, BsonType.Oid);
}