المساعد الشخصي الرقمي

مشاهدة النسخة كاملة : Whirlwind Screencasts Explore New Features in C#4



C# Programming
04-11-2010, 09:54 AM
Stuart Celarier (http://visualstuart.net)[^ (http://visualstuart.net)] and I continue the set of screencasts on Channel 9 (http://channel9.msdn.com/)[^ (http://channel9.msdn.com/)] about new ******** features in C#. It's a Whirlwind Tour of the important ******** features of C# 4. Stuart describes each major feature and why it is useful. But he doesn't get into best practices nor suggested usages. Just the facts about each feature.

Whirlwinds are bite-sized webcasts, generally shorter than 15 minutes. You can start anywhere in the series to learn about the parts you're most interested in.

What's new in C# 4

Whirlwind 9 - Introducing C# 4 (http://channel9.msdn.com/posts/bruceky/Whirlwind-9-Introducing-C-4/)[^ (http://channel9.msdn.com/posts/bruceky/Whirlwind-9-Introducing-C-4/)]. This session reviews the history of C# and provides an overview of the features in the upcoming screencasts.
Whirlwind 10 - Dynamic Lookup (http://channel9.msdn.com/posts/bruceky/Whirlwind-10-Whats-new-in-C4-Dynamic-Lookup/)[^ (http://channel9.msdn.com/posts/bruceky/Whirlwind-10-Whats-new-in-C4-Dynamic-Lookup/)]. This session on dynamic lookup introduces a new pseudo-type dynamic into the C# type system. It's used to call dynamic ********s, COM object, or XML using types that are not known at compile time (aka duck typing). Stuart introduces the concepts of dynamic lookup and how you use it in your C# code.
Whirlwind 11 - Named & Optional Parameters (http://channel9.msdn.com/posts/bruceky/Whirlwind-11-Whats-new-in-C-4-Named--Optional-Parameters/)[^ (http://channel9.msdn.com/posts/bruceky/Whirlwind-11-Whats-new-in-C-4-Named--Optional-Parameters/)]. Stuart describes the feature that VB programmers have known, using parameters by name and having default values set on parameters that are not specified.

Three more coming later this week.

Whirlwind 12 - More COM Love. Stuart describes the importance of these two new features in C# for COM Interop.
ref keyword is optional if you are not going to use a return value when calling COM.
No Primary Interop Assembly (PIA) is required.
Whirlwind 13 - Covariance & Contravariance. These features provide way for you to access collections of derived classes and base classes.
Whirlwind 14 – Events. Stuart shows how the compiler handles eventing. The compiler no longer sets locks on events, instead uses a compare and swap technique. Stuart compares C# from .NET 3.5 and .NET 4 to show the differences and explains the implications for your existing code.
Learn more about Microsoft emerging techologies (http://blogs.msdn.com/usisvde)[^ (http://blogs.msdn.com/usisvde)] on the Microsoft blog for independent software vendors (ISVs) in the United States.