Apply code suggestion

This commit is contained in:
Jordan Dominion
2024-09-11 16:17:13 -04:00
parent a5b4afbde6
commit edd41aab62
+1 -1
View File
@@ -25,7 +25,7 @@
/// <typeparam name="TResultType">The child of <see cref="UserName"/> to create.</typeparam>
/// <returns>A new <typeparamref name="TResultType"/> copied from <see langword="this"/>.</returns>
protected virtual TResultType CreateUserName<TResultType>()
where TResultType : UserName, new() => new TResultType
where TResultType : UserName, new() => new()
{
Id = Id,
Name = Name,