Files
mono/mcs/class/System.Web.Extensions/Test/code/Bug604053_DataSource.cs
T
Marek Habersack 1e4a6be22d 2010-05-18 Marek Habersack <[email protected]>
* ListView.cs: if data source has pageable data, get total count
	from the source's DataSourceCount property. Fixes bug #604053

svn path=/trunk/mcs/; revision=157470
2010-05-17 23:35:55 +00:00

27 lines
508 B
C#

using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.ComponentModel;
namespace Bug604053.Prueba {
public class Data {
public int M1 { get; set; }
public string M2 { get; set; }
public Data(int m1, string m2) {
M1 = m1;
M2 = m2;
}
}
[DataObject(true)]
public class DataSource {
public Data[] Retrieve() {
Data[] data = new Data[10];
for(int i = 0; i < 10; i++) {
data[i] = new Data(i, i.ToString());
}
return data;
}
}
}