File tree Expand file tree Collapse file tree 2 files changed +39
-8
lines changed
Expand file tree Collapse file tree 2 files changed +39
-8
lines changed Load Diff This file was deleted.
Original file line number Diff line number Diff line change 1+ using System ;
2+ using System . Collections . Generic ;
3+
4+ namespace DictionaryList
5+ {
6+ /// <summary>
7+ /// Represents a strongly-typed list of objects that has a dictionary-like structure.
8+ /// Elements can be accessed by an index which is ordered but not guaranteed to be continuous.
9+ /// </summary>
10+ public class DictionaryList < TValue >
11+ {
12+ internal struct DataBox < TData >
13+ {
14+ internal TData Value ;
15+
16+ internal DataBox ( TData value )
17+ {
18+ Value = value ;
19+ }
20+ }
21+
22+ internal List < DataBox < TValue > > _list = new List < DataBox < TValue > > ( ) ;
23+
24+ internal int _actualCount ;
25+
26+ /// <summary>
27+ /// Initializes a new instance of the `DictionaryList<TValue>` class that is empty and has the default capacity.
28+ /// </summary>
29+ public DictionaryList ( )
30+ {
31+
32+ }
33+
34+ /// <summary>
35+ /// Returns the number of active elements in this DictionaryList.
36+ /// </summary>
37+ public int Count => _actualCount ;
38+ }
39+ }
You can’t perform that action at this time.
0 commit comments