StreamReader class has both close and dispose method. I want to know which method to call to clean up all resources.
If making use of using block, I think it will c
Use Dispose via a using block to guarantee that clean-up happens.
Use Close if you finish with the object considerably before the end of the using block, to be as prompt as possible in releasing any resources.
The two will hence work hand-in-hand, though the latter can be redundant if you are going to reach the end of the block in a few nanoseconds anyway.