Skip to content

Commit 076d755

Browse files
authored
Fixed Current type in KeyEnumerator
Changed return type of the Current property from "JSONNode" to "string".
1 parent 833d654 commit 076d755

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

SimpleJSON.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -199,7 +199,7 @@ public struct KeyEnumerator
199199
public KeyEnumerator(List<JSONNode>.Enumerator aArrayEnum) : this(new Enumerator(aArrayEnum)) { }
200200
public KeyEnumerator(Dictionary<string, JSONNode>.Enumerator aDictEnum) : this(new Enumerator(aDictEnum)) { }
201201
public KeyEnumerator(Enumerator aEnumerator) { m_Enumerator = aEnumerator; }
202-
public JSONNode Current { get { return m_Enumerator.Current.Key; } }
202+
public string Current { get { return m_Enumerator.Current.Key; } }
203203
public bool MoveNext() { return m_Enumerator.MoveNext(); }
204204
public KeyEnumerator GetEnumerator() { return this; }
205205
}

0 commit comments

Comments
 (0)