Page 1 of 1


PostPosted: Sun Oct 04, 2009 6:03 am
by Charles
I've added a .clone method to IList<of T>. If we like it then similar methods can be added for sets, dictionaries and collections, both generic and non. You can see the checkins here in changeset:2199 and changeset:2200.

The idea is that you can now write "t.clone.blah.blah" instead of "List<of X>(t).blah.blah". Cobra has other methods that also promote invoking multiple methods left-to-right. See the wiki pages StandardLibraryExtensionMethods and PrimitiveTypeMembers.