I posted some sample code recently, for some tests with C# 4.0 dynamic. Now I’ve found a new interesting thing — perhaps this is also related to using beta 2 instead of the RC, again I’ll try this when I get around to it. The thing is, I have created my own dynamic object:
public class MyDynamicType : DynamicObject {
public override bool TryInvokeMember(InvokeMemberBinder binder,
object[] args, out object result) {
Console.WriteLine("TryInvokeMember {0}", binder.Name);
...
I was just trying out this piece of code:
dynamic expando = new ExpandoObject( ) {
FirstName = "Oliver",
Name = "Sturm"
};
This doesn’t work! Not sure whether that’s intended (this is VS 2010 beta 2, in case you’re wondering), but it really seems like a feature that should work… of course, if you’re not familiar with the ExpandoObject, this piece of code does work:
dynamic expando = new ExpandoObject( );
expando.FirstName = "Oliver";
expando.Name = "Sturm";
…
I just realized that I haven’t actually blogged about this: the ASP.NET product training for DevExpress that I’m doing! The reason I forgot is that I’ve been extremely busy preparing all the content and all that — a work in progress for a long time now, but still a surprisingly great effort to get done. Monday is the first training class in Leeuwenhorst in the Netherlands. Title: Business Applications with DXperience ASP.NET. When we first announced this (we’re partnering with John Martin’s …
The first European DevExpress training I announced recently was booked out so fast, it was almost unbelievable… so we set up a few more! We’re going to be in London, Frankfurt, Zurich and Paris early next year. Find the announcements here, or go directly to the detail page with the option to sign up. If the first class is any indication, seats may go quickly. There’s also an early-bird offer until November 26th, so better not leave it too long!
…
I was in Amsterdam yesterday and did a talk for the dotNed user group on functional programming in C#. It’s always a great topic to talk about, and as usual everybody was very interested. We spent a bit more time on the Parallel Extensions than I was anticipating — the main reason I even start explaining Parallel Extensions is that I want to point out where their functionality ends — but that was fine. I think I was able to answer a bunch of questions on that, which is always a good thing.
…
My friend John recently asked me about a visual element for his web site here. It was supposed to look like a scroller sort of thingy that should show stuff. Brilliant, eh? I couldn’t readily come up with a suggestion that would satisfy all those requirements, so I looked into creating something for him. Of course, being the cheap bastard that I am, I wanted to use Flash for this (oh sure, there’s Silverlight, but it always appears to be out of date on my own machine, and I’m afraid its market …
I’m going to be speaking at the CodeCamp in Krakow, Poland, on October 17th. Looks like a very cool event with a great speaker lineup, and best of all it’s free! So if you are in Poland around that time, I suggest you drop by and say hi — you can learn stuff about F# from me, incidentally, and of course I’m always happy to meet DevExpress customers and talk about our products. Hope to see you there!
I was tempted to call it a roundtrip like before, but that’s not really what it is on the map. Starting on September 17th, I’ll be on my way to several events in the Netherlands, Germany and Austria. As usual, I’m looking forward to meeting lots of people — if you’re in the vicinity of any of my stops and want to meet up, let me know and I’ll see what I can do!
Of course there’ll also be the odd DevExpress license given out as …