public void Read(BinaryReader binaryReader) { CoilRegisters.Clear(); IsNull = binaryReader.ReadBoolean(); if (IsNull) { return; } else { var length = binaryReader.ReadInt32(); for (var i = 0; length > i; i++) { var coilRegister = new CoilRegister(); coilRegister.Read(binaryReader); CoilRegisters.Add(coilRegister); } } }
public CoilRegisterArray AddCoilRegister(CoilRegister coilRegister) { CoilRegisters.Add(coilRegister); return(this); }
public MODBUSMaster_CoilRegisterArray AddCoilRegister(MODBUSMaster_CoilRegister coilRegister) { CoilRegisters.Add(coilRegister); return(this); }