protected override object ConvertFromBytes(ITypeDescriptorContext context, CultureInfo culture, IEnumerable <byte> value) { return(From(Binary.From(value))); }
private Hex(string text, Binary data) { _text = text; _data = data; }
public static Hex From(Binary value) { return(new Hex(BitConverter.ToString(value.ToBytes()).Replace("-", ""), value)); }