I want to reach the same result as I obtain in C# with this syntax, but in VB.NET:
// This is my generic object (coming from Json parsing!):
var genericContent = new { Name = "name1", Value = 0 };
// I would like to have a generic list, created by this generic item:
var myList = (new[] { genericContent }).ToList();
// So, I can add any other generic items (with the same structure)...
myList.Add(new { Name = "name2", Value = 1 });
// And treat them as a normal list, without declaring the class!
return myList.Count;
...so, I just want to create a generic array in VB.
In C# it works well, but I don't kwon this VB.NET syntax...
I'm using .NET framework 3.5!
Thank you!
hey, I need THIS, but I don't want to do it, so do it for me people!