public override void WriteJson(JsonWriter writer, object value, JsonSerializer serializer) { DUID address = (DUID)value; Byte[] bytes = address.GetAsByteStream(); writer.WriteValue(Convert.ToBase64String(bytes)); }
public DHCPv6PacketIdentifierOption(UInt16 code, DUID duid) : base(code, duid.GetAsByteStream()) { DUID = duid; }