public void Read(BinaryReader binaryReader) { HistoryPoints.Clear(); IsNull = binaryReader.ReadBoolean(); if (IsNull) { return; } else { var length = binaryReader.ReadInt32(); for (var i = 0; length > i; i++) { HistoryPoints.Add(binaryReader.ReadByte()); } } }
public ROCMaster_ROCPlusHistoryPointArray AddHistoryPoint(byte historyPoint) { HistoryPoints.Add(historyPoint); return(this); }
public override string ToString() { return(string.Join("|", HistoryPoints.Select(parameter => parameter.ToString()))); }