it has recently been
discovered that even Extension Methods can be used in projects targeting .NET
Framework 2.0 and 3.0. All that must be done to enable this support is to create a new System.Runtime.CompilerServices.ExtensionAttribute.
This trick does have flaws. There are potential scoping issues that occur
when an assembly containing a custom
System.Runtime.CompilerServices.ExtensionAttribute is referenced by a project
that targets .NET Framework 3.5. A compiler warning is generated stating that
"the predefined type 'System.Runtime.CompilerServices.ExtensionAttribute' is
defined in multiple assemblies in the global alias." However, this is only a
minor irritation. In my tests, Extension Methods still worked properly despite
The ability to use C# 3.0 features in .NET Framework 2.0 or 3.0 projects is
very powerful. It helps users get comfortable with the new syntax without having
to upgrade projects to .NET Framework 3.5. Viva la C# 2.5!
Page rendered at Wednesday, June 19, 2013 8:33:31 AM (Pacific Standard Time, UTC-08:00)
If feel a bit behind and need to catch up on WPF, this is the book.
Great book on F# containing from Beginner to Advanced. It even has chapters on more arcane features of the language, such as Computation Expressions and Quotations.
Because this book provides source code in Standard ML, it's a fantastic
resource for learning F#. One bit of warning: this book does not teach classic
data structures. While structures such as binomial heaps and red-black trees
are presented, it is assumed that the reader already knows and understands
The opinions expressed herein are my own personal opinions and do not represent
my employer's view in any way.