public void Read(BinaryReader binaryReader) { StringRegisters.Clear(); IsNull = binaryReader.ReadBoolean(); if (IsNull) { return; } else { var length = binaryReader.ReadInt32(); for (var i = 0; length > i; i++) { var stringRegister = new StringRegister(); stringRegister.Read(binaryReader); StringRegisters.Add(stringRegister); } } }
public StringRegisterArray AddStringRegister(StringRegister stringRegister) { StringRegisters.Add(stringRegister); return(this); }
public MODBUSMaster_StringRegisterArray AddStringRegister(MODBUSMaster_StringRegister stringRegister) { StringRegisters.Add(stringRegister); return(this); }