Skip to content

Commit dc13630

Browse files
committed
Implement IReadOnlyDictionary
1 parent fa85a74 commit dc13630

File tree

3 files changed

+5
-2
lines changed

3 files changed

+5
-2
lines changed

.editorconfig

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,9 @@ root = true
22

33
[*.cs]
44

5+
# CA1710: Identifiers should not have incorrect suffix (KVObject implements IReadOnlyDictionary but is not a dictionary)
6+
dotnet_diagnostic.CA1710.severity = none
7+
58
# CA1711: Identifiers should not have incorrect suffix
69
dotnet_diagnostic.CA1711.severity = none
710

ValveKeyValue/ValveKeyValue/KVObject.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ namespace ValveKeyValue
1111
/// Keys (names) are stored in the parent container, not on the child.
1212
/// </summary>
1313
[DebuggerDisplay("{DebuggerDescription}")]
14-
public partial class KVObject : IEnumerable<KeyValuePair<string, KVObject>>
14+
public partial class KVObject : IReadOnlyDictionary<string, KVObject>
1515
{
1616
#region Properties
1717

ValveKeyValue/ValveKeyValue/KVObject_IEnumerable.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
namespace ValveKeyValue
44
{
5-
public partial class KVObject : IEnumerable<KeyValuePair<string, KVObject>>
5+
public partial class KVObject
66
{
77
/// <inheritdoc/>
88
public IEnumerator<KeyValuePair<string, KVObject>> GetEnumerator()

0 commit comments

Comments
 (0)