chcę utworzyć anonimowy klasy w vb.net dokładnie tak:Anonymous klasy inicjalizacji w Vb.NET
var data = new {
total = totalPages,
page = page,
records = totalRecords,
rows = new[]{
new {id = 1, cell = new[] {"1", "-7", "Is this a good question?"}},
new {id = 2, cell = new[] {"2", "15", "Is this a blatant ripoff?"}},
new {id = 3, cell = new[] {"3", "23", "Why is the sky blue?"}}
}
};
thx.
Twój przykład pokazuje anonimową klasę w C#, to nie jest związane z json .. –
Kontekst za jego pytanie można znaleźć bardziej szczegółowo tutaj: http: // haacked. com/archive/2009/04/14/using-jquery-grid-with-asp.net-mvc.aspx –