Why can't I connect an object that implements IEnumerable as a DataSource on an ObjectDataSource? The following class is allowed:
but if I add ": IEnumerable" after "MyClass", the Data Explorer on the report only displays the message "No Data Source"
I'm using Telerik Reporting 2010 Q2 SP1 (4.1.10.921)
BTW: My real class returns an enumerator from GetEnumerator(), that is not the problem...
Sverre
public
class
MyClass
{
private
int
test;
public
int
Test
{
get
{
return
test; }
set
{ test = value; }
}
public
IEnumerator GetEnumerator()
{
return
null
;
}
}
but if I add ": IEnumerable" after "MyClass", the Data Explorer on the report only displays the message "No Data Source"
I'm using Telerik Reporting 2010 Q2 SP1 (4.1.10.921)
BTW: My real class returns an enumerator from GetEnumerator(), that is not the problem...
Sverre