Skip to content

Commit

Permalink
Update TypeExtensions.cs
Browse files Browse the repository at this point in the history
  • Loading branch information
AKlaus authored Sep 24, 2024
1 parent c3c25ad commit 34a2953
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions Domain/Helpers/TypeExtensions.cs
Original file line number Diff line number Diff line change
Expand Up @@ -27,10 +27,7 @@ public static bool IsClosedTypeOf(this Type @this, Type openGeneric)
/// </remarks>
public static bool IsAssignableTo<T>(this Type @this)
{
if (@this == null)
{
throw new ArgumentNullException(nameof(@this));
}
ArgumentNullException.ThrowIfNull(@this);

return typeof(T).IsAssignableFrom(@this);
}
Expand Down

0 comments on commit 34a2953

Please sign in to comment.