A Few New Things In .Net 4 & C# 4
Tuple http://msdn.microsoft.com/en-us/library/dd414846.aspx http://msdn.microsoft.com/en-us/library/system.tuple.aspx Basically a better option than using object[] in some scenarios (Tuple elements are typed). Useful For · Creating arbitrarily sized sets of individually typed elements (can be longer than 8, just tricky). · Creating functions with multiple return values. · Create simple structs/classes on the fly. · Pass multiple parameters in a single one (e.g. Thread.Start(Object)). MEF http://msdn.microsoft.com/en-us/library/dd235164(v=VS.100).aspx http://mef.codeplex.com/ Used to make plug-ins. (Also note the similar preexisting alternative, MAF, in the System.Addin namespace). DynamicObject http://msdn.microsoft.com/en-us/library/system.dynamic.dynamicobject(v=VS.100).aspx This is the guy responsible for all of the dynamic keyword magic. You can subclass this to create your own dynamic obj...