This project has moved. For the latest updates, please go here.

Anonymous types and VB.Net

May 8, 2011 at 5:33 PM

I have tried Clay with VB.Net and it works for the most part. But I can not pass in an anonymous type. I can replicate this in C# by doing this.

dynamic c = new ClayFactory();
var x = new[] { 1, 2, 3 };
var plant = c.Plant(ref x);

The ref keyword is the key here. If the above would work than it would also work in VB.Net.

I made a few blogpost about this.