mirror of
https://github.com/AlexMacocian/SystemExtensions.git
synced 2026-07-19 07:49:29 +00:00
Fix nullability of parameter
This commit is contained in:
@@ -5,7 +5,7 @@ namespace System.Core.Extensions;
|
||||
|
||||
public static class ObjectExtensions
|
||||
{
|
||||
public static T ThrowIfNull<T>([NotNull] this T obj, [CallerArgumentExpression("obj")] string? paramName = null)
|
||||
public static T ThrowIfNull<T>([NotNull] this T? obj, [CallerArgumentExpression("obj")] string? paramName = null)
|
||||
where T : class
|
||||
{
|
||||
if (obj is null)
|
||||
|
||||
Reference in New Issue
Block a user