Should You Use var in C#?

I get asked this question or get in heated discussions about this all the time: "I have a standards question regarding the var keyword. I’m starting to see it pop up a LOT in our code and I was wondering if there were any official Microsoft standards regarding its usage. I was under the impression … Continue reading Should You Use var in C#?

Type Design: Equals and HashCode

Good type design dictates that the Equals should always be overridden. This is actually a FXCop violation but 99.99% of types that I see, never has it (or GetHashCode).  Overriding Equals is pretty easy. Public Overloads Function Equals(ByVal obj As [Object] ) As Boolean Try Dim ci = DirectCast (obj, ComputerInfo ) Return (ci.OSFullName = … Continue reading Type Design: Equals and HashCode

Fullerton Code Camp 2011

I hope everyone in southern California is planning to attend this years SoCal Code Camp in Fullerton, Ca on 1/29 – 1/30. It’s always a great time and lots of free training! I will be presenting the following sessions and I hope you will attend. Building nTier Applications with Entity Framework Services Learn how to … Continue reading Fullerton Code Camp 2011

Los Angeles Code Camp 2010

I hope everyone in southern California is planning to attend this years SoCal Code Camp in Los Angeles on 10/23 – 10/24. It’s always a great time and lots of free training! I will be presenting the following sessions and I hope you will attend. Back-2-Basics: Exception & Event Instrumentation in .NET This session will … Continue reading Los Angeles Code Camp 2010