4 using System.Collections;
5 using System.Collections.Generic;
6 using System.Diagnostics;
10 namespace SiliconStudio.Core.Diagnostics
21 if (collection == null)
22 throw new ArgumentNullException(
"collection");
23 this.collection = collection;
26 [DebuggerBrowsable(DebuggerBrowsableState.RootHidden)]
31 return collection.Cast<
object>().ToArray();
45 if (collection == null)
46 throw new ArgumentNullException(
"collection");
47 this.collection = collection;
50 [DebuggerBrowsable(DebuggerBrowsableState.RootHidden)]
55 T[] array =
new T[this.collection.Count];
56 this.collection.CopyTo(array, 0);
System.Collections.ICollection ICollection
Use this class to provide a debug output in Visual Studio debugger.
CollectionDebugView(ICollection< T > collection)
CollectionDebugView(IEnumerable collection)