using System;
using DPumpHydr.WinFrmUI.WenSkin.Json.Utilities;
namespace DPumpHydr.WinFrmUI.WenSkin.Json.Bson
{
///
/// Represents a BSON Oid (object id).
///
public class BsonObjectId
{
///
/// Gets or sets the value of the Oid.
///
/// The value of the Oid.
public byte[] Value { get; private set; }
///
/// Initializes a new instance of the class.
///
/// The Oid value.
public BsonObjectId(byte[] value)
{
ValidationUtils.ArgumentNotNull(value, "value");
if (value.Length != 12)
{
throw new ArgumentException("An ObjectId must be 12 bytes", "value");
}
Value = value;
}
}
}