public static ROCMaster_HistoryRecordArray Parse(SqlString stringToParse) { if (stringToParse.IsNull) { return(Null); } var parsedROCHistoryRecords = new ROCMaster_HistoryRecordArray(); parsedROCHistoryRecords.historyRecords = new List <ROCMaster_HistoryRecord>(); var parsedString = stringToParse.Value.Split("|".ToCharArray()); for (var i = 0; parsedString.Length > i; i++) { parsedROCHistoryRecords.historyRecords.Add(ROCMaster_HistoryRecord.Parse(parsedString[i])); } return(parsedROCHistoryRecords); }
public void Read(BinaryReader binaryReader) { HistoryRecords.Clear(); IsNull = binaryReader.ReadBoolean(); if (IsNull) { return; } else { var length = binaryReader.ReadInt32(); for (var i = 0; length > i; i++) { var historyRecord = new ROCMaster_HistoryRecord(); historyRecord.Read(binaryReader); HistoryRecords.Add(historyRecord); } } }
public ROCMaster_HistoryRecordArray AddHistoryRecord(ROCMaster_HistoryRecord historyRecord) { HistoryRecords.Add(historyRecord); return(this); }