Neuron®
The Neuron® is the basis for the creation of open and secure federated networks for smart societies.
Loading...
Searching...
No Matches
ChunkedListDebugView.cs
1using System.Diagnostics;
2
4{
9 internal class ChunkedListDebugView<T>
10 {
11 private readonly ChunkedList<T> list;
12
17 public ChunkedListDebugView(ChunkedList<T> List)
18 {
19 this.list = List;
20 }
21
25 [DebuggerBrowsable(DebuggerBrowsableState.RootHidden)]
26 public T[] Items
27 {
28 get
29 {
30 int c = this.list.Count;
31 if (c > 200)
32 c = 200;
33
34 T[] Result = new T[c];
35 this.list.CopyTo(0, Result, 0, c);
36
37 return Result;
38 }
39 }
40 }
41}