Skip to content

Commit 626775e

Browse files
committed
Modifiy parameters name
1 parent 632b112 commit 626775e

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

Encrypt/AesEncryption/Encrypt.cs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -63,13 +63,13 @@ public string AesEncryptByteToString(byte[] data, byte[] secretKey, byte[] iv)
6363
private void NullChecks(string data, string secretKey, string iv)
6464
{
6565
if (data == null || data.Length <= 0)
66-
throw new ArgumentNullException("plainText");
66+
throw new ArgumentNullException(nameof(data));
6767

6868
if (secretKey == null || secretKey.Length <= 0)
69-
throw new ArgumentNullException("Key");
69+
throw new ArgumentNullException(nameof(secretKey));
7070

7171
if (iv == null || iv.Length <= 0)
72-
throw new ArgumentNullException("IV");
72+
throw new ArgumentNullException(nameof(iv));
7373
}
7474

7575
private void NullChecks(string data, string secretKey)

0 commit comments

Comments
 (0)