@@ -121,19 +121,20 @@ local KeyValuePair = {
121121 end
122122}
123123
124- KeyValuePairFn = System .defStc (" System.KeyValuePair" , function (TKey , TValue )
124+ KeyValuePairFn = System .defStc (" System.Collections.Generic. KeyValuePair" , function (TKey , TValue )
125125 local cls = {
126126 __genericTKey__ = TKey ,
127127 __genericTValue__ = TValue ,
128128 }
129129 return cls
130130end , KeyValuePair )
131+ System .KeyValuePair = KeyValuePairFn
131132
132133local function isKeyValuePair (t )
133134 return getmetatable (getmetatable (t )) == KeyValuePair
134135end
135136
136- local DictionaryEnumerator = define (" System.DictionaryEnumerator" , {
137+ local DictionaryEnumerator = define (" System.Collections.Generic. DictionaryEnumerator" , {
137138 getCurrent = System .getCurrent ,
138139 Dispose = System .emptyFn ,
139140 MoveNext = function (this )
@@ -194,7 +195,7 @@ local function dictionaryEnumerator(t, kind)
194195 return setmetatable (en , DictionaryEnumerator )
195196end
196197
197- local DictionaryCollection = define (" System.DictionaryCollection" , function (T )
198+ local DictionaryCollection = define (" System.Collections.Generic. DictionaryCollection" , function (T )
198199 return {
199200 __inherits__ = { System .ICollection_1 (T ), System .IReadOnlyCollection_1 (T ), System .ICollection },
200201 __genericT__ = T
@@ -397,7 +398,7 @@ function System.dictionaryFromTable(t, TKey, TValue)
397398 return setmetatable (t , Dictionary (TKey , TValue ))
398399end
399400
400- define (" System.Dictionary" , function (TKey , TValue )
401+ System . Dictionary = define (" System.Collections.Generic .Dictionary" , function (TKey , TValue )
401402 return {
402403 __inherits__ = { System .IDictionary_2 (TKey , TValue ), System .IDictionary , System .IReadOnlyDictionary_2 (TKey , TValue ) },
403404 __genericT__ = KeyValuePairFn (TKey , TValue ),
0 commit comments