Exemple #1
0
        public void Add(object data)
        {
            if (data == null || !(data is byte))
            {
                throw new InvalidCastException();
            }

            ValidatedBytes.Add((byte)data);
        }
Exemple #2
0
 public override string ToString()
 {
     return(BytesToHexString(ValidatedBytes.ToArray()));
 }