(X) Hide this
    • Login
    • Join
      • Say No Bots Generate New Image
        By clicking 'Register' you accept the terms of use .
        Login with Facebook

IListExtensions adds easy sorting to .NET list types - enabling faster search and removal, too!

(0 votes)
0 comments   /   posted by Silverlight Show on May 05, 2011
Tags:   wpf , windows-phone-7 , david-anson
SilverlightShow Page for all Silverlight and Windows Phone 7 (WP7) things on Twitter

Take a look at the IListExtensions class for easy sorting to .NET list types created by David Anson.

Source: Delay's Blog

If you want to display a dynamically changing collection of items in WPF, Silverlight, or Windows Phone, there are a lot of collection classes to pick from - but there's really just one good choice: ObservableCollection(T). Although nearly all the IList(T)/ICollection(T)/IEnumerable(T) implementations work well for static data, dynamic data only updates automatically when it's in a collection that implements INotifyCollectionChanged. And while it's possible to write your own INotifyCollectionChanged code, doing a good job takes a fair amount of work. Fortunately, ObservableCollection(T) does nearly everything you'd want and is a great choice nearly all of the time.

Comments

No comments

Add Comment

Login to comment:
  *      *       
Login with Facebook

Our News on Twitter