General code style and feature fixes.

This commit is contained in:
2022-11-15 01:35:06 +00:00
parent f44172edb9
commit 8b24f6ed00
2 changed files with 4 additions and 9 deletions

View File

@@ -46,8 +46,7 @@ public static partial class ArrayHelpers
/// <typeparam name="T">Array type</typeparam>
public static void ArrayFill<T>(T[] destinationArray, T[] value)
{
if(destinationArray == null)
throw new ArgumentNullException(nameof(destinationArray));
ArgumentNullException.ThrowIfNull(destinationArray);
if(value.Length > destinationArray.Length)
throw new ArgumentException("Length of value array must not be more than length of destination");