Forums

List.clone

General discussion about Cobra. Releases and general news will also be posted here.
Feel free to ask questions or just say "Hello".

List.clone

Postby Charles » Sun Oct 04, 2009 6:03 am

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.
Charles
 
Posts: 2515
Location: Los Angeles, CA

Return to Discussion

Who is online

Users browsing this forum: No registered users and 118 guests

cron