SqlDataReader, how is it done?

  • Thread starter Thread starter Marius Horak
  • Start date Start date
M

Marius Horak

SqlDataReader has no constructor so how ExecuteReader creates it?

MH
 
It has no *public* constructor; it almost certainly has an internal
one, that SqlCommand can use.

Have checked via reflector, and sure enough:

internal SqlDataReader(SqlCommand command, CommandBehavior behavior)
{...}

Marc
 
Marc said:
It has no public constructor; it almost certainly has an internal
one, that SqlCommand can use.

Thank you.
Thank you.
Thank you.

MH
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top