Quiero crear una clase anónima en vb.net exactamente como esta:Anónimo inicialización de clase en 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.
Su ejemplo muestra una clase anónima en C#, que no está relacionado con JSON .. –
El contexto detrás de su pregunta se puede encontrar con más detalle aquí: http: // haacked. com/archive/2009/04/14/using-jquery-grid-with-asp.net-mvc.aspx –