12
CA2202, bagaimana mengatasi kasus ini
Adakah yang bisa memberi tahu saya cara menghapus semua peringatan CA2202 dari kode berikut? public static byte[] Encrypt(string data, byte[] key, byte[] iv) { using(MemoryStream memoryStream = new MemoryStream()) { using (DESCryptoServiceProvider cryptograph = new DESCryptoServiceProvider()) { using (CryptoStream cryptoStream = new CryptoStream(memoryStream, cryptograph.CreateEncryptor(key, iv), CryptoStreamMode.Write)) { using(StreamWriter streamWriter = …
102
c#
.net
code-analysis
fxcop