public Byte4(long value) { var binary = Convert.ToString(value, 2).PadLeft(32, '0'); High = new Byte2(binary.Substring(0, 16)); Low = new Byte2(binary.Substring(16, 16)); }
public Byte2 Read(Byte2 address) { return(_content[address.ToInt16()]); }
public Byte4(Byte2 high, Byte2 low) { High = high; Low = low; }
public Byte4(string value) { High = new Byte2(value.Substring(0, 16)); Low = new Byte2(value.Substring(16, 16)); }