C# 3 is pretty cool. Even though it has been around for a while, there are still tricks to be told to even the expert C# programmer.
Often enough, I usually see some code which would take in a
Nullable<T>.Value and do some string formatting on the
Nullable<T>.Value after doing all those compulsory checks on the
So here is a snippet of code which expands on the following feature aspects of C# 3:
- Extension methods
- Generic type constraints
Well, happy programming! :)