1. The constructor is not exposed, that is not publicly available:
To create a SqlDataReader, you must call the ExecuteReader method of the SqlCommand object, instead of directly using a constructor.
2.
dr
is a reference variable. After the
SqlDatareader dr
statement,
dr
is equal to
null
.