1 using System; 2 using System.Collections; 3 using System.Collections.Generic; 4 using System.Collections.ObjectModel; 5 using System.Text; 6 using System.Xml; 7 using System.Xml.Schema; 8 using System.IO; 9 using System.Reflection; 10 using System.Diagnostics; 11 using System.Runtime.Serialization; 12 using System.Security.Permissions; 13 using System.Globalization; 14 15 //using System.Workflow.Activities; 16 using System.Workflow.ComponentModel; 17 using System.Workflow.Runtime; 18 using System.Workflow.Runtime.Hosting; 19 using Hosting = System.Workflow.Runtime.Hosting; 20 21 namespace System.Workflow.Runtime.Tracking 22 { 23 /// <summary> 24 /// Used by TrackPoint to hold Extracts. 25 /// </summary> 26 [Serializable] 27 [Obsolete("The System.Workflow.* types are deprecated. Instead, please use the new types from System.Activities.*")] 28 public class ExtractCollection : List<TrackingExtract> 29 { ExtractCollection()30 public ExtractCollection() 31 { 32 } 33 ExtractCollection(IEnumerable<TrackingExtract> extracts)34 public ExtractCollection(IEnumerable<TrackingExtract> extracts) 35 { 36 // 37 // Not using the IEnumerable<T> constructor on the base List<T> so that we can check for null. 38 // The code behind AddRange doesn't appear to have a significant perf 39 // overhead compared to the IEnumerable<T> constructor if the list is empty 40 // (which it will always be at this point). 41 if (null == extracts) 42 throw new ArgumentNullException("extracts"); 43 44 AddRange(extracts); 45 } 46 } 47 } 48