Bill McCarthy: List transactions…

Bill McCarthy has a very cool use for extension methods where he manages adds/removes against IList(of T). Basically he builds a transaction log of all interactions against a list that can then be applied later. This is useful for avoiding exceptions whilst iterating over a list and modifying at the same time (most enumerators have a problem with this).

Neat – wish I had thought of it.

About these ads

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s