delegate () { solve(everything); }

Call me Ishmael.

C#: Maintaining complex state – SyncLINQ to the rescue!

Paul Stovell has created a LINQ library that can be used to simplify the maintenance of state in complex (and even not so complex) applications. It is called SyncLINQ, and consists of a few extension methods that can be used to very easily take advantage of INotifyPropertyChanged and INotifyCollectionChanged events for keeping your state in sync. It also has an Asynchronous() extension method that uses the same event processing to allow for the easiest asynchronous data retrieval I have ever seen! KUDOS Paul!

There are a few good examples on his website, and I recommend you take the time to go through them. There are also a couple of videos, but be warned: Paul is very much an Aussie so you might need to concentrate to understand what he is talking about ;-)

I haven’t had the time to try this out yet, but I am doing a CAB spike right now so I will probably try this out to see how it can handle the state management in a modular UI over the next couple of days. And from the information on his website and his demos it looks very promising.

 

Technorati Koder: ,

May 23, 2008 Posted by | Programming, Winforms | , | Leave a Comment

   

Follow

Get every new post delivered to your Inbox.