Why is the SqlDataReader not disposed in this example? I thought that it should be enclosed in a using statement or disposed after using it.
(If needed I can pull an edit)
⚠Do not edit this section. It is required for docs.microsoft.com ➟ GitHub issue linking.
Thanks @FrancescoBonizzi. @douglaslMS can you look at this issue?
Does reader really need to be Closed and Disposed, as shown in this sample?
@mjwills You're correct that Dispose calls Close (although the inverse is not true - Close does not call Dispose).
Most helpful comment
@mjwills You're correct that Dispose calls Close (although the inverse is not true - Close does not call Dispose).