-
Notifications
You must be signed in to change notification settings - Fork 5
Expand file tree
/
Copy pathReadOnlySetDebugView.cs
More file actions
47 lines (36 loc) · 864 Bytes
/
ReadOnlySetDebugView.cs
File metadata and controls
47 lines (36 loc) · 864 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
namespace Menees
{
#region Using Directives
using System;
using System.Collections.Generic;
using System.Diagnostics;
using System.Diagnostics.CodeAnalysis;
using System.Linq;
using System.Text;
#endregion
[SuppressMessage("", "CA1812", Justification = "Created via reflection using DebuggerTypeProxy.")]
internal sealed class ReadOnlySetDebugView<T>
{
#region Private Data Members
private readonly ReadOnlySet<T> set;
#endregion
#region Constructors
public ReadOnlySetDebugView(ReadOnlySet<T> set)
{
this.set = set ?? throw Exceptions.NewArgumentNullException(nameof(set));
}
#endregion
#region Public Properties
[DebuggerBrowsable(DebuggerBrowsableState.RootHidden)]
public T[] Items
{
get
{
T[] array = new T[this.set.Count];
this.set.CopyTo(array, 0);
return array;
}
}
#endregion
}
}