diff --git a/snippets/csharp/System.Security.Cryptography/Aes/Overview/program.cs b/snippets/csharp/System.Security.Cryptography/Aes/Overview/program.cs index 323143e13b3..ec6efe4516d 100644 --- a/snippets/csharp/System.Security.Cryptography/Aes/Overview/program.cs +++ b/snippets/csharp/System.Security.Cryptography/Aes/Overview/program.cs @@ -60,8 +60,9 @@ static byte[] EncryptStringToBytes_Aes(string plainText, byte[] Key, byte[] IV) //Write all data to the stream. swEncrypt.Write(plainText); } - encrypted = msEncrypt.ToArray(); } + + encrypted = msEncrypt.ToArray(); } } diff --git a/snippets/csharp/System.Security.Cryptography/AesCryptoServiceProvider/Overview/program.cs b/snippets/csharp/System.Security.Cryptography/AesCryptoServiceProvider/Overview/program.cs index fc4fcb65cf0..259e3e5abc2 100644 --- a/snippets/csharp/System.Security.Cryptography/AesCryptoServiceProvider/Overview/program.cs +++ b/snippets/csharp/System.Security.Cryptography/AesCryptoServiceProvider/Overview/program.cs @@ -59,8 +59,9 @@ static byte[] EncryptStringToBytes_Aes(string plainText, byte[] Key, byte[] IV) //Write all data to the stream. swEncrypt.Write(plainText); } - encrypted = msEncrypt.ToArray(); } + + encrypted = msEncrypt.ToArray(); } } @@ -115,4 +116,4 @@ static string DecryptStringFromBytes_Aes(byte[] cipherText, byte[] Key, byte[] I // } } -// \ No newline at end of file +// diff --git a/snippets/csharp/System.Security.Cryptography/AesManaged/Overview/program.cs b/snippets/csharp/System.Security.Cryptography/AesManaged/Overview/program.cs index 153d42acf9e..3521111b374 100644 --- a/snippets/csharp/System.Security.Cryptography/AesManaged/Overview/program.cs +++ b/snippets/csharp/System.Security.Cryptography/AesManaged/Overview/program.cs @@ -59,8 +59,9 @@ static byte[] EncryptStringToBytes_Aes(string plainText, byte[] Key, byte[] IV) //Write all data to the stream. swEncrypt.Write(plainText); } - encrypted = msEncrypt.ToArray(); } + + encrypted = msEncrypt.ToArray(); } } @@ -115,4 +116,4 @@ static string DecryptStringFromBytes_Aes(byte[] cipherText, byte[] Key, byte[] I // } } -// \ No newline at end of file +// diff --git a/snippets/csharp/System.Security.Cryptography/RijndaelManaged/Overview/class1.cs b/snippets/csharp/System.Security.Cryptography/RijndaelManaged/Overview/class1.cs index 2310d25bcb1..d011097ee4e 100644 --- a/snippets/csharp/System.Security.Cryptography/RijndaelManaged/Overview/class1.cs +++ b/snippets/csharp/System.Security.Cryptography/RijndaelManaged/Overview/class1.cs @@ -70,8 +70,9 @@ static byte[] EncryptStringToBytes(string plainText, byte[] Key, byte[] IV) //Write all data to the stream. swEncrypt.Write(plainText); } - encrypted = msEncrypt.ToArray(); } + + encrypted = msEncrypt.ToArray(); } }