User-1100895119 posted
I'm having trouble converting the C# code code below to vb.net (source: Flash Tag Cloud control for ASP.NET (http://flashtagcloud.codeplex.com/)):
WPCumulus1.DataSource = new[]
{
new {Text = "TagX", Count = 10, Link="/Tags/Silverlight" },
new {Text = "TagY", Count = 25, Link="http://iis.net" },
new {Text = "IE 8", Count = 12, Link="/Tags/IE8" },
};
WPCumulus1.DataBind();
Using Telerik's code converter I get this:
WPCumulus1.DataSource = New () {New With { _
.Text = "TagX", _
.Count = 10, _
.Link = "/Tags/Silverlight" _
}, New With { _
.Text = "TagY", _
.Count = 25, _
.Link = "http://iis.net" _
}, New With { _
.Text = "IE 8", _
.Count = 12, _
.Link = "/Tags/IE8" _
}}
WPCumulus1.DataBind()
In VS2010 I get the error "Error 9 Type expected." referring to "New ()".
Could someone guide me?