Пример #1
0
        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());
                }
            }
        }
Пример #2
0
 public ROCMaster_ROCPlusHistoryPointArray AddHistoryPoint(byte historyPoint)
 {
     HistoryPoints.Add(historyPoint);
     return(this);
 }
Пример #3
0
 public override string ToString()
 {
     return(string.Join("|", HistoryPoints.Select(parameter => parameter.ToString())));
 }