public void Read(BinaryReader binaryReader)
        {
            FloatRegisters.Clear();
            IsNull = binaryReader.ReadBoolean();

            if (IsNull)
            {
                return;
            }
            else
            {
                var length = binaryReader.ReadInt32();

                for (var i = 0; length > i; i++)
                {
                    var floatRegister = new MODBUSMaster_FloatRegister();
                    floatRegister.Read(binaryReader);
                    FloatRegisters.Add(floatRegister);
                }
            }
        }
 public MODBUSMaster_FloatRegisterArray AddFloatRegister(MODBUSMaster_FloatRegister floatRegister)
 {
     FloatRegisters.Add(floatRegister);
     return(this);
 }
 public FloatRegisterArray AddFloatRegister(FloatRegister floatRegister)
 {
     FloatRegisters.Add(floatRegister);
     return(this);
 }