C# "dynamic," Part VI

[Update March 31, 2010: MUCH OF THIS HAS CHANGED SINCE PRE-RELEASE VERSION OF DYNAMIC. SEE THIS POST] We left off last time with this piece of codepublic class C { public static void M(int i) { } public static void M(string s) { } } … dynamic d = GetSomeD(); C.M(d); …together with some question…

3

C# "dynamic," Part V

[Update March 31, 2010: MUCH OF THIS HAS CHANGED SINCE PRE-RELEASE VERSION OF DYNAMIC. SEE THIS POST] Let’s look at this:dynamic d = null; object o = d; // not an implicit conversion Last time, I said that the conversion on the second line is not an implicit conversion. If you know C# already, that…

3

C# "dynamic," Part IV

Today, let’s geek out about the language design regarding the dynamic type. Type in the language vs. Type in the runtime One thing that lots of people already know is that when you say “dynamic” in code, you can think of it as “System.Object” in your assembly, because that’s how the compiler emits it.dynamic d…

5

Channel 9 Video on C# 4

I’m a little backlogged at work right now, and I’ll get back to some dynamic posts as soon as I can. In the meantime, Eric, Sam, Mads, and I talked with Channel 9 last week, and the video has just been posted. I look forward to watching it myself! Here’s hoping I haven’t said anything…

0

C# "dynamic," Part III

Here are a few good resources that you ought to look at for information about dynamic from PDC: Anders Hejlsberg’s talk, "The Future of C#" – Among other things, this talk is a great introduction to dynamic. I recommend it highly! There are some good demos, and Anders’ presentation is very compelling. I especially like…

22

C# "dynamic," Part II

Yesterday, I made an attempt to introduce the C# dynamic feature by describing what change there has been to the language, what scenarios we hope to affect by that change, and some overview of what dynamic operations look like in C# 4 as it stands in the preview distributed at PDC 2008. One thing that…

21

C# "dynamic"

PDC 2008 arrives today, and that means that I am finally able to talk publicly about some of the things I’ve been working on for the next version of C#. What a relief! I am excited for the world to see some of this stuff, and to start receiving more customer feedback about it. This…

34

Events in Space

My last post was many months ago, and I’ve been pretty busy here since then. Nobody who starts a blog means to neglect it, even though mostly that’s what happens. I won’t let it go for so long again. =) Anyway, we were talking about events. Field-like events in particular, and the nastiness of their…

1

Field-like Events Considered Harmful

Hi all, my name’s Chris Burrows, and I’m a developer on the C# Compiler team here in Redmond. I’ll introduce myself further in a subsequent post, but I just want to start off with a note that has at least a little substance. So let’s talk about C# events as they’ve existed for a long…

0