Skip to content

Commit

Permalink
Fix compiler warning that appears with VS 2022 Update 6 preview
Browse files Browse the repository at this point in the history
  • Loading branch information
AArnott committed Mar 16, 2023
1 parent c3b4a71 commit 8a7cf22
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ public bool TryAdd(Type key, TValue value)

public bool TryAdd(Type key, Func<Type, TValue> valueFactory)
{
return this.TryAddInternal(key, valueFactory, out TValue _);
return this.TryAddInternal(key, valueFactory, out TValue? _);
}

private bool TryAddInternal(Type key, Func<Type, TValue> valueFactory, [MaybeNullWhen(false)] out TValue resultingValue)
Expand Down

0 comments on commit 8a7cf22

Please sign in to comment.