Steve Michelotti

A .NET Developer's Toolbox

  Home  |   Contact  |   Syndication    |   Login
  201 Posts | 0 Stories | 1110 Comments | 51 Trackbacks


View Steve Michelotti's profile on LinkedIn

profile for Steve Michelotti at Stack Overflow, Q&A for professional and enthusiast programmers

Google My Blog

What I'm Reading:

Shelfari: Book reviews on your book blog

Tag Cloud


Post Categories



August 2007 Entries

C# 3.0 Lambda Expressions play an integral part of making the LINQ framework work. Outside of LINQ it is recommended that they be used sparingly because they are less "discoverable." However, there are a couple of nice scenarios where extension methods have good potential to make your code more elegant as a stand-alone language enhancement. Take an example where you have a nullable value in the database and you represent this as a Nullable<DateTime> on your C# object (e.g., EmploymentEndDate). ......

C# 3.0 Lambda Expressions play an integral part of making the LINQ framework work. However, even apart from LINQ, they stand alone quite nicely as a great replacement to C# 2.0 anonymous methods in terms of language syntax usability. For example, consider this simple anonymous method: personList.RemoveAll(delega... person) { return person.DateOfBirth.Year < 1980; }); While anonymous methods were a great language addition in C# 2.0, the syntax could be confusing at times in terms of getting ......

The .NET 2.0 Configuration API is a huge step up from the previous versions of the framework rendering many other previous configuration framework (Enterprise Library Configuration block, etc.) virtually obsolete. However, one thing that can trip people up is when they try to assign to a configuration property at run-time you can get a ConfigurationErrorsException - The configuration is read only even when a setter is defined on their property: [ConfigurationProperty(item... DefaultValue = ......

I recently had to debug a problem for my current client which was exceptionally weird and I was able to utilize WinDbg to help get to the bottom of the problem relatively quickly. Basically the application in question is an application that takes a custom object and puts in in an MSMQ message (which currently uses the default binary serializer). The class in question is marked with the Serializable attribute, has a couple of primitive members (e.g., ints, strings) and a couple of NameValueCollections. ......

This is a great post that anyone who works with WinDbg should check out:

Bookmark it - it will come in handy anytime you're debugging with WinDbg.