diff options
author | Ahson Khan <ahkha@microsoft.com> | 2017-12-16 09:19:43 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-12-16 09:19:43 +0300 |
commit | b29814cd75aac9ba4b478fe92ee97cf657331a6d (patch) | |
tree | c2699586e179e233fa579dba51545ca4d8fc111f /src/System.Memory/tests/Base64 | |
parent | c47edd1c8a3e561e5081e966b0d270fa2b345f05 (diff) |
General code clean up of System.Memory (#25958)
* Use explicit type instead of var where type can't be inferred easily.
* Removing unnecessary use of 'unsafe' and generic type specifiers.
* Remove leftover unnecessary generic specifiers.
Diffstat (limited to 'src/System.Memory/tests/Base64')
-rw-r--r-- | src/System.Memory/tests/Base64/Base64TestHelper.cs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/System.Memory/tests/Base64/Base64TestHelper.cs b/src/System.Memory/tests/Base64/Base64TestHelper.cs index 1aa8271674..667a691614 100644 --- a/src/System.Memory/tests/Base64/Base64TestHelper.cs +++ b/src/System.Memory/tests/Base64/Base64TestHelper.cs @@ -87,7 +87,7 @@ namespace System.Buffers.Text.Tests [Fact] public static void GenerateEncodingMapAndVerify() { - var data = new byte[64]; // Base64 + byte[] data = new byte[64]; // Base64 for (int i = 0; i < s_characters.Length; i++) { data[i] = (byte)s_characters[i]; @@ -98,7 +98,7 @@ namespace System.Buffers.Text.Tests [Fact] public static void GenerateDecodingMapAndVerify() { - var data = new sbyte[256]; // 0 to byte.MaxValue (255) + sbyte[] data = new sbyte[256]; // 0 to byte.MaxValue (255) for (int i = 0; i < data.Length; i++) { data[i] = s_invalidByte; |