Exemplo n.º 1
0
        public object Clone()
        {
            StackHashEventInfoCollection eventInfoCollection = new StackHashEventInfoCollection();

            foreach (StackHashEventInfo eventInfo in this)
            {
                eventInfoCollection.Add((StackHashEventInfo)eventInfo.Clone());
            }

            return(eventInfoCollection);
        }
Exemplo n.º 2
0
        public StackHashEventInfoCollection Normalize()
        {
            StackHashEventInfoCollection newEventInfos = new StackHashEventInfoCollection();

            foreach (StackHashEventInfo eventInfo in this)
            {
                StackHashEventInfo newEventInfo = eventInfo.Normalize();

                StackHashEventInfo foundEventInfo = newEventInfos.FindEventInfo(newEventInfo);

                if (foundEventInfo == null)
                {
                    newEventInfos.Add(newEventInfo);
                }
                else
                {
                    foundEventInfo.TotalHits += newEventInfo.TotalHits;
                }
            }

            return(newEventInfos);
        }