public void Add(object data) { if (data == null || !(data is byte)) { throw new InvalidCastException(); } ValidatedBytes.Add((byte)data); }
public override string ToString() { return(BytesToHexString(ValidatedBytes.ToArray())); }
public void Add(object data) { if (data == null || !(data is byte)) { throw new InvalidCastException(); } ValidatedBytes.Add((byte)data); }
public override string ToString() { return(BytesToHexString(ValidatedBytes.ToArray())); }