VS2010 Beta2, and two loops too

This morning, Visual Studio 2010 Beta2 is available to MSDN subscribers, with general availability to follow later in the week. Also, the new branding for Visual Studio and MSDN has been unveiled. Here’s the new C# logo: I like the new visual identity a lot! The old four-color infinity has been with Visual Studio for…

0

MSDN Channel 9 Video on Dynamic

About a month ago, Sam Ng and I sat down with Charlie Calvert and his video camera to record an interview-style video about dynamic. Have a look! https://channel9.msdn.com/posts/CharlieCalvert/CSharp-4-Dynamic-with-Chris-Burrows-and-Sam-Ng/ If you view it, I hope you find it helpful and informative. Also, I clearly need to take some kind of instruction on what to do with…

0

Dynamic type parameter constraints in C# 4

What we know already So we talked about how you can define a class that has a base class that involves dynamic, such as // This is OK! class Derived : Base<dynamic> { } although you cannot use dynamic alone as a base class. And we talked about how you cannot define a class that…

12

Dynamic base classes in C# 4

Ok, where were we? We have this new type called dynamic, and it’s used to tell the compiler to defer binding until runtime. We can construct other types with it as usual, and therefore use dynamic[], IEnumerable<dynamic>, List<dynamic>, and so on. But last time, in answer to the entirely reasonable question, “where can I use…

3

C# “dynamic,” Part VII

It has been a while since I posted anything here, and I have the same excuse everyone else does. Work, holidays, and generally being pretty busy. But enough of that, it’s February (!!!) and that means we’re getting closer to shipping C# 4.0 and dynamic and making all of this a much less abstract exercise…

4