Fix nullability of parameter

This commit is contained in:
2024-10-16 14:29:51 +02:00
parent 25eae4061b
commit 818240fcea
6 changed files with 7 additions and 7 deletions
@@ -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)
{
@@ -7,7 +7,7 @@
<PackageLicenseFile>LICENSE</PackageLicenseFile>
<PackageRequireLicenseAcceptance>true</PackageRequireLicenseAcceptance>
<RootNamespace>System</RootNamespace>
<Version>1.6.10</Version>
<Version>1.6.11</Version>
<Authors>Alexandru Macocian</Authors>
<RepositoryUrl>https://github.com/AlexMacocian/SystemExtensions</RepositoryUrl>
<Description>Extensions for the System namespace</Description>