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

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

                for (var i = 0; length > i; i++)
                {
                    var eventArchiveRecord = new EventArchiveRecord();
                    eventArchiveRecord.Read(binaryReader);
                    EventArchiveRecords.Add(eventArchiveRecord);
                }
            }
        }
 public EventArchiveRecordArray AddEventArchiveRecord(EventArchiveRecord eventArchiveRecord)
 {
     EventArchiveRecords.Add(eventArchiveRecord);
     return(this);
 }
 public override string ToString()
 {
     return(string.Join("|", EventArchiveRecords.Select(eventArchiveRecord => eventArchiveRecord.ToString())));
 }
 public MODBUSMaster_EventArchiveRecordArray AddEventArchiveRecord(MODBUSMaster_EventArchiveRecord eventArchiveRecord)
 {
     EventArchiveRecords.Add(eventArchiveRecord);
     return(this);
 }