diff --git a/Crc32.NET.Core.sln b/Crc32.NET.Core.sln index 4f42590..70c9fc4 100644 --- a/Crc32.NET.Core.sln +++ b/Crc32.NET.Core.sln @@ -1,4 +1,4 @@ - + Microsoft Visual Studio Solution File, Format Version 12.00 # Visual Studio 15 VisualStudioVersion = 15.0.26114.2 @@ -11,36 +11,16 @@ Global GlobalSection(SolutionConfigurationPlatforms) = preSolution Debug|Any CPU = Debug|Any CPU Release|Any CPU = Release|Any CPU - Debug|x64 = Debug|x64 - Debug|x86 = Debug|x86 - Release|x64 = Release|x64 - Release|x86 = Release|x86 EndGlobalSection GlobalSection(ProjectConfigurationPlatforms) = postSolution {E95FA3F3-4ED0-41FF-9A1F-DE80CE14A976}.Debug|Any CPU.ActiveCfg = Debug|Any CPU {E95FA3F3-4ED0-41FF-9A1F-DE80CE14A976}.Debug|Any CPU.Build.0 = Debug|Any CPU - {E95FA3F3-4ED0-41FF-9A1F-DE80CE14A976}.Debug|x64.ActiveCfg = Debug|x64 - {E95FA3F3-4ED0-41FF-9A1F-DE80CE14A976}.Debug|x64.Build.0 = Debug|x64 - {E95FA3F3-4ED0-41FF-9A1F-DE80CE14A976}.Debug|x86.ActiveCfg = Debug|x86 - {E95FA3F3-4ED0-41FF-9A1F-DE80CE14A976}.Debug|x86.Build.0 = Debug|x86 {E95FA3F3-4ED0-41FF-9A1F-DE80CE14A976}.Release|Any CPU.ActiveCfg = Release|Any CPU {E95FA3F3-4ED0-41FF-9A1F-DE80CE14A976}.Release|Any CPU.Build.0 = Release|Any CPU - {E95FA3F3-4ED0-41FF-9A1F-DE80CE14A976}.Release|x64.ActiveCfg = Release|x64 - {E95FA3F3-4ED0-41FF-9A1F-DE80CE14A976}.Release|x64.Build.0 = Release|x64 - {E95FA3F3-4ED0-41FF-9A1F-DE80CE14A976}.Release|x86.ActiveCfg = Release|x86 - {E95FA3F3-4ED0-41FF-9A1F-DE80CE14A976}.Release|x86.Build.0 = Release|x86 {A602A9CA-793A-4096-A93C-799CA74519BF}.Debug|Any CPU.ActiveCfg = Debug|Any CPU {A602A9CA-793A-4096-A93C-799CA74519BF}.Debug|Any CPU.Build.0 = Debug|Any CPU - {A602A9CA-793A-4096-A93C-799CA74519BF}.Debug|x64.ActiveCfg = Debug|x64 - {A602A9CA-793A-4096-A93C-799CA74519BF}.Debug|x64.Build.0 = Debug|x64 - {A602A9CA-793A-4096-A93C-799CA74519BF}.Debug|x86.ActiveCfg = Debug|x86 - {A602A9CA-793A-4096-A93C-799CA74519BF}.Debug|x86.Build.0 = Debug|x86 {A602A9CA-793A-4096-A93C-799CA74519BF}.Release|Any CPU.ActiveCfg = Release|Any CPU {A602A9CA-793A-4096-A93C-799CA74519BF}.Release|Any CPU.Build.0 = Release|Any CPU - {A602A9CA-793A-4096-A93C-799CA74519BF}.Release|x64.ActiveCfg = Release|x64 - {A602A9CA-793A-4096-A93C-799CA74519BF}.Release|x64.Build.0 = Release|x64 - {A602A9CA-793A-4096-A93C-799CA74519BF}.Release|x86.ActiveCfg = Release|x86 - {A602A9CA-793A-4096-A93C-799CA74519BF}.Release|x86.Build.0 = Release|x86 EndGlobalSection GlobalSection(SolutionProperties) = preSolution HideSolutionNode = FALSE diff --git a/Crc32.NET/Crc32Algorithm.cs b/Crc32.NET/Crc32Algorithm.cs index a5937da..ccacd03 100644 --- a/Crc32.NET/Crc32Algorithm.cs +++ b/Crc32.NET/Crc32Algorithm.cs @@ -51,7 +51,7 @@ public static uint Append(uint initial, byte[] input, int offset, int length) if (input == null) throw new ArgumentNullException("input"); if (offset < 0 || length < 0 || offset + length > input.Length) - throw new ArgumentOutOfRangeException("length", "Selected range is outside the bounds of the input array"); + throw new ArgumentOutOfRangeException("length"); return AppendInternal(initial, input, offset, length); } @@ -122,7 +122,7 @@ public static uint ComputeAndWriteToEnd(byte[] input, int offset, int length) public static uint ComputeAndWriteToEnd(byte[] input) { if (input.Length < 4) - throw new ArgumentOutOfRangeException("input", "input array should be 4 bytes at least"); + throw new ArgumentOutOfRangeException("input", "Input array should be 4 bytes at least"); return ComputeAndWriteToEnd(input, 0, input.Length - 4); } @@ -146,7 +146,7 @@ public static bool IsValidWithCrcAtEnd(byte[] input, int offset, int lengthWithC public static bool IsValidWithCrcAtEnd(byte[] input) { if (input.Length < 4) - throw new ArgumentOutOfRangeException("input", "input array should be 4 bytes at least"); + throw new ArgumentOutOfRangeException("input", "Input array should be 4 bytes at least"); return Append(0, input, 0, input.Length) == 0x2144DF1C; } diff --git a/Crc32.NET/Crc32CAlgorithm.cs b/Crc32.NET/Crc32CAlgorithm.cs index 40093e7..f49083f 100644 --- a/Crc32.NET/Crc32CAlgorithm.cs +++ b/Crc32.NET/Crc32CAlgorithm.cs @@ -50,7 +50,7 @@ public static uint Append(uint initial, byte[] input, int offset, int length) if (input == null) throw new ArgumentNullException("input"); if (offset < 0 || length < 0 || offset + length > input.Length) - throw new ArgumentOutOfRangeException("length", "Selected range is outside the bounds of the input array"); + throw new ArgumentOutOfRangeException("length"); return AppendInternal(initial, input, offset, length); } @@ -121,7 +121,7 @@ public static uint ComputeAndWriteToEnd(byte[] input, int offset, int length) public static uint ComputeAndWriteToEnd(byte[] input) { if (input.Length < 4) - throw new ArgumentOutOfRangeException("input", "input array should be 4 bytes at least"); + throw new ArgumentOutOfRangeException("input", "Input array should be 4 bytes at least"); return ComputeAndWriteToEnd(input, 0, input.Length - 4); } @@ -145,7 +145,7 @@ public static bool IsValidWithCrcAtEnd(byte[] input, int offset, int lengthWithC public static bool IsValidWithCrcAtEnd(byte[] input) { if (input.Length < 4) - throw new ArgumentOutOfRangeException("input", "input array should be 4 bytes at least"); + throw new ArgumentOutOfRangeException("input", "Input array should be 4 bytes at least"); return Append(0, input, 0, input.Length) == 0x48674BC7; }