protected override int OnWriteSumEntityData(SumDataEntity entity, BinaryWriter writer)
        {
            NotificationHandleSumEntity entity2 = (NotificationHandleSumEntity)entity;

            writer.Write(entity2.GetWriteBytes());
            return(entity2.WriteLength);
        }
        private IList <SumDataEntity> CreateSumEntityInfos()
        {
            List <SumDataEntity> list = new List <SumDataEntity>();

            for (int i = 0; i < this._variableHandles.Length; i++)
            {
                uint indexOffset = this._variableHandles[i];
                int  dataLength  = this._variableLengths[i];
                NotificationHandleSumEntity item = new NotificationHandleSumEntity(0xf005, indexOffset, this._settings, dataLength);
                list.Add(item);
            }
            return(list);
        }