Neuron®
The Neuron® is the basis for the creation of open and secure federated networks for smart societies.
Loading...
Searching...
No Matches
ChunkNodeDebugView.cs
1using System;
2using System.Diagnostics;
3
5{
10 internal class ChunkNodeDebugView<T>
11 {
12 private readonly ChunkNode<T> node;
13
18 public ChunkNodeDebugView(ChunkNode<T> Node)
19 {
20 this.node = Node;
21 }
22
26 [DebuggerBrowsable(DebuggerBrowsableState.RootHidden)]
27 public T[] Items
28 {
29 get
30 {
31 int c = this.node.Pos - this.node.Start;
32 if (c > 200)
33 c = 200;
34
35 T[] Result = new T[c];
36 Array.Copy(this.node.Elements, this.node.Start, Result, 0, c);
37
38 return Result;
39 }
40 }
41 }
42}