diff --git a/ArrayFill.cs b/ArrayFill.cs
index 9f3e72206..f4e440cbc 100644
--- a/ArrayFill.cs
+++ b/ArrayFill.cs
@@ -46,8 +46,7 @@ public static partial class ArrayHelpers
/// Array type
public static void ArrayFill(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");
diff --git a/DateHandlers.cs b/DateHandlers.cs
index 30ad7496d..b01dd0ddd 100644
--- a/DateHandlers.cs
+++ b/DateHandlers.cs
@@ -345,13 +345,9 @@ public static class DateHandlers
/// Converts a LIF timestamp to .NET DateTime
/// LIF timestamp
/// .NET DateTime
- public static DateTime LifToDateTime(byte[] date)
- {
- if(date is not { Length: 6 })
- return new DateTime(1970, 1, 1, 0, 0, 0);
-
- return LifToDateTime(date[0], date[1], date[2], date[3], date[4], date[5]);
- }
+ public static DateTime LifToDateTime(byte[] date) => date is not { Length: 6 } ? new DateTime(1970, 1, 1, 0, 0, 0)
+ : LifToDateTime(date[0], date[1], date[2], date[3],
+ date[4], date[5]);
/// Converts a LIF timestamp to .NET DateTime
/// Yer