Welcome to MSDN Blogs Sign in | Join | Help

February 2008 - Posts

String.Contains really should have an overload with StringComparison specified

I've had this come up in conversations in the past (and it's been on feedback for almost 3 years now ), but just realized I never posted the (simple) extension method I use. A comment on Brad's blog : # Milan Negovan said on July 4, 2005 5:59 PM: Brad,
Posted by jmanning | 1 Comments

Dynamic type support in C#? Sweet!

Ok, so it's just in the planning stages, but you may have run across Charlie Calvert's recent blog post about supporting dynamic (aka runtime) lookup for methods/properties/etc which would avoid having to deal with that ghastly beastie that is reflection
Posted by jmanning | 2 Comments

A type's static fields don't get initialized until the type is referenced

Most of you likely already know this, but I've seen 2 customers that were confused by this but I forgot to post this back then. The idea is that they were avoiding the use of static fields because they had the belief that the static fields in all the
Posted by jmanning | 1 Comments

Does this object subclass X or implement Y?

A guy on my team dropped by to ask me how to do this, so I figured it'd be worth posting about. The situation in his case is that he had an object passed into a method he was writing and he wanted to check if it implemented a particular interface, something
Posted by jmanning | 5 Comments
 
Page view tracker