Changeset 1586
- Timestamp:
- 1/19/2010 2:13:18 AM (3 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/eraser6/CodeReview/Eraser.Util/Security.cs
r1583 r1586 155 155 } 156 156 157 internal sealed class CryptApi 157 internal sealed class CryptApi : IDisposable 158 158 { 159 159 /// <summary> … … 189 189 } 190 190 191 #region IDisposable Members 192 ~CryptApi() 193 { 194 Dispose(false); 195 } 196 197 public void Dispose(bool disposing) 198 { 199 if (disposing) 200 handle.Close(); 201 } 202 203 public void Dispose() 204 { 205 Dispose(true); 206 GC.SuppressFinalize(this); 207 } 208 #endregion 209 191 210 /// <summary> 192 211 /// The GenRandom function fills a buffer with cryptographically random bytes.
Note: See TracChangeset
for help on using the changeset viewer.
