How do you check whether a DataReader is closed or opened? | Eklavya Online

How do you check whether a DataReader is closed or opened?

There is a property named “IsClosed” property is used to check whether a DataReader is closed or opened. This property returns a true value if a Data Reader is closed, otherwise a false value is returned.