Skip to content

Commit 96e1f86

Browse files
author
LoneWandererProductions
committed
some smaller stuff still todo
1 parent f1980cb commit 96e1f86

1 file changed

Lines changed: 11 additions & 0 deletions

File tree

ExtendedSystemObjects/SortedKvStore.cs

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,10 @@
77

88
namespace ExtendedSystemObjects
99
{
10+
/// <summary>
11+
///
12+
/// </summary>
13+
/// <seealso cref="System.IDisposable" />
1014
public sealed class SortedKvStore : IDisposable
1115
{
1216
private readonly IntArray _keys;
@@ -130,6 +134,7 @@ public void Remove(int key)
130134
_occupied[idx] = 0;
131135
}
132136
}
137+
133138
public bool TryRemove(int key, out int index)
134139
{
135140
index = BinarySearch(key);
@@ -249,11 +254,17 @@ public void Clear()
249254
_occupied.Clear();
250255
}
251256

257+
/// <summary>
258+
/// Finalizes an instance of the <see cref="SortedKvStore"/> class.
259+
/// </summary>
252260
~SortedKvStore()
253261
{
254262
Dispose();
255263
}
256264

265+
/// <summary>
266+
/// Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.
267+
/// </summary>
257268
public void Dispose()
258269
{
259270
_keys.Dispose();

0 commit comments

Comments
 (0)