Exemplo n.º 1
0
        public StackHashSynchronizeStatistics Clone()
        {
            StackHashSynchronizeStatistics newStats = new StackHashSynchronizeStatistics(
                m_Products, m_Files, m_Events, m_EventInfos, m_Cabs);

            return(newStats);
        }
Exemplo n.º 2
0
        public void Subtract(StackHashSynchronizeStatistics statisticsToSubtract)
        {
            if (statisticsToSubtract == null)
            {
                throw new ArgumentNullException("statisticsToSubtract");
            }

            m_Products   -= statisticsToSubtract.Products;
            m_Files      -= statisticsToSubtract.Files;
            m_Events     -= statisticsToSubtract.Events;
            m_EventInfos -= statisticsToSubtract.EventInfos;
            m_Cabs       -= statisticsToSubtract.Cabs;
        }
Exemplo n.º 3
0
        public void Add(StackHashSynchronizeStatistics statisticsToAdd)
        {
            if (statisticsToAdd == null)
            {
                throw new ArgumentNullException("statisticsToAdd");
            }

            m_Products   += statisticsToAdd.Products;
            m_Files      += statisticsToAdd.Files;
            m_Events     += statisticsToAdd.Events;
            m_EventInfos += statisticsToAdd.EventInfos;
            m_Cabs       += statisticsToAdd.Cabs;
        }