Saher Isaac
Saher Isaac

Reputation: 71

Reopen SqlDataReader after closing

I have the following:

SqlDataReader reader = new SqlDataReader();
reader.Close();

I want to open the reader after I closed it. How can I do that?

Upvotes: 4

Views: 551

Answers (1)

Jonathan Allen
Jonathan Allen

Reputation: 70307

No. Once something is closed (or disposed) in .NET, there is usually no way to reopen it.

Upvotes: 3

Related Questions