diff --git a/src/System.Management.Automation/engine/LanguagePrimitives.cs b/src/System.Management.Automation/engine/LanguagePrimitives.cs index 618a23b9f5..42fc00684b 100644 --- a/src/System.Management.Automation/engine/LanguagePrimitives.cs +++ b/src/System.Management.Automation/engine/LanguagePrimitives.cs @@ -1071,7 +1071,7 @@ namespace System.Management.Automation /// /// The object to test. /// True if the object is null. - public static bool IsNullLike(object obj) => obj == DBNull.Value || obj == NullString.Value || IsNull(obj); + public static bool IsNullLike(object obj) => IsNull(obj) || obj == DBNull.Value || obj == NullString.Value; /// /// Auxiliary for the cases where we want a new PSObject or null.