@@ -16,7 +16,7 @@ namespace LightJson
16
16
[ DebuggerTypeProxy ( typeof ( JsonObjectDebugView ) ) ]
17
17
internal sealed class JsonObject : IEnumerable < KeyValuePair < string , JsonValue > > , IEnumerable < JsonValue >
18
18
{
19
- private readonly IDictionary < string , JsonValue > properties ;
19
+ private readonly Dictionary < string , JsonValue > properties ;
20
20
21
21
/// <summary>
22
22
/// Initializes a new instance of the <see cref="JsonObject"/> class.
@@ -158,14 +158,23 @@ public bool ContainsKey(string key)
158
158
/// <returns>Returns true if the value is found; otherwise, false.</returns>
159
159
public bool Contains ( JsonValue value )
160
160
{
161
- return this . properties . Values . Contains ( value ) ;
161
+ return this . properties . ContainsValue ( value ) ;
162
162
}
163
163
164
164
/// <summary>
165
165
/// Returns an enumerator that iterates through this collection.
166
166
/// </summary>
167
167
/// <returns>The enumerator that iterates through this collection.</returns>
168
- public IEnumerator < KeyValuePair < string , JsonValue > > GetEnumerator ( )
168
+ public Dictionary < string , JsonValue > . Enumerator GetEnumerator ( )
169
+ {
170
+ return this . properties . GetEnumerator ( ) ;
171
+ }
172
+
173
+ /// <summary>
174
+ /// Returns an enumerator that iterates through this collection.
175
+ /// </summary>
176
+ /// <returns>The enumerator that iterates through this collection.</returns>
177
+ IEnumerator < KeyValuePair < string , JsonValue > > IEnumerable < KeyValuePair < string , JsonValue > > . GetEnumerator ( )
169
178
{
170
179
return this . properties . GetEnumerator ( ) ;
171
180
}
0 commit comments