public PerformanceNotificationCollection()
 {
     items = new PerformanceNotification[0];
 }
Beispiel #2
0
        public static void AddPerformanceNotification(PerformanceNotificationCollection collection, PerformanceNotification notification)
        {
            if (Array.Find(collection.items, i => i.name == notification.name) != null)
            {
                return;
            }

            var newList = new List <PerformanceNotification>(collection.items)
            {
                notification
            };

            collection.items = newList.ToArray();
        }