[Mono-devel-list] API change in System.Collections.Generic.KeyValuePair
Kamil Skalski
kamil.skalski at gmail.com
Sun Aug 7 15:23:21 EDT 2005
Hi!
In MS.NET 2.0 July CTP they have changed the
System.Collections.Generic.KeyValuePair structure, so now it does not
contain the fields Key and Value, but properties.
I attach the patch, which fixes it, but there are two questions /
issues about it.
1) Do we want the CTP API in mono now, or should I keep the patch
locally and commit it after the next public release of runtime? (I
don't have Beta2 at hand, but it seems that there were only Key and
Value fields there - could someone check this?)
2) Key and Value are used for writing in Dictionary. I workarounded it
by making the storage fields in KeyValuePair internal, and assign
directly to them. Is it better to just create new instances of
KeyValuePair in Dictionary (the perf. impact should not be great,
since it is a structure)
--
Kamil Skalski
http://nazgul.omega.pl
-------------- next part --------------
A non-text attachment was scrubbed...
Name: keyval.diff
Type: application/octet-stream
Size: 1485 bytes
Desc: not available
Url : http://lists.ximian.com/pipermail/mono-devel-list/attachments/20050807/4a3a7d7e/attachment.obj
More information about the Mono-devel-list
mailing list