I have this code :-
using (System.Security.Cryptography.SHA256 sha2 = new System.Security.Cryptography.SHA256Managed()) { .. }
Do I need to put this line of code, just BEFORE I leave that dispose scope .. or does the dispose ‘call’ that already.
sha2.Clear();
Since AFAIK the Clear() method just calls Dispose, the using block should be enough to ensure that the resources used are released.