C
Christian
Hi,
the browser in Vis.Studio .NET indicates that SqlDataReader inherits from
IEnumerator, but intellisense doesn't show any member (GetEnumerator) of an
SqlDataReader object.
Nor does the following compile :
SqlCommand cmd = new SqlCommand("SELECT firstname, lastname, city FROM
employees");
SqlDataReader myReader = cmd.ExecuteReader();
myReader.GetEnumerator();
==> ERROR : 'System.Data.SqlClient.SqlDataReader' does not contain a
definition for
'GetEnumerator'
IEnumerator myEnum = myReader as IEnumerator;
=> ERROR : Cannot convert type 'System.Data.SqlClient.SqlDataReader' to
'System.Collections.IEnumerator' via a built-in
conversion
So why is the browser showing it in the hierarchy chart ?
thnx
chris
the browser in Vis.Studio .NET indicates that SqlDataReader inherits from
IEnumerator, but intellisense doesn't show any member (GetEnumerator) of an
SqlDataReader object.
Nor does the following compile :
SqlCommand cmd = new SqlCommand("SELECT firstname, lastname, city FROM
employees");
SqlDataReader myReader = cmd.ExecuteReader();
myReader.GetEnumerator();
==> ERROR : 'System.Data.SqlClient.SqlDataReader' does not contain a
definition for
'GetEnumerator'
IEnumerator myEnum = myReader as IEnumerator;
=> ERROR : Cannot convert type 'System.Data.SqlClient.SqlDataReader' to
'System.Collections.IEnumerator' via a built-in
conversion
So why is the browser showing it in the hierarchy chart ?
thnx
chris