mirror of
https://github.com/AlexMacocian/SystemExtensions.git
synced 2026-07-24 03:56:27 +00:00
Fix nullability of parameter
This commit is contained in:
@@ -41,7 +41,7 @@ public static class ObjectExtensions
|
||||
return Optional.FromValue(obj);
|
||||
}
|
||||
|
||||
public static T ThrowIfNull<T>([ValidatedNotNull] this T obj, string name) where T : class
|
||||
public static T ThrowIfNull<T>([ValidatedNotNull] this T? obj, string name) where T : class
|
||||
{
|
||||
if (obj is null)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user