Skip to content

Commit 33e011e

Browse files
authored
Fixed typo for ArgumentNullException.ThrowIfNull (#42562)
1 parent 17b49ec commit 33e011e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/Shared/PropertyAsParameterInfo.cs

+2-2
Original file line numberDiff line numberDiff line change
@@ -61,8 +61,8 @@ public override object? RawDefaultValue
6161
[UnconditionalSuppressMessage("Trimmer", "IL2075", Justification = "PropertyAsParameterInfo.Flatten requires unreferenced code.")]
6262
public static ReadOnlySpan<ParameterInfo> Flatten(ParameterInfo[] parameters, ParameterBindingMethodCache cache)
6363
{
64-
ArgumentNullException.ThrowIfNull(nameof(parameters));
65-
ArgumentNullException.ThrowIfNull(nameof(cache));
64+
ArgumentNullException.ThrowIfNull(parameters);
65+
ArgumentNullException.ThrowIfNull(cache);
6666

6767
if (parameters.Length == 0)
6868
{

0 commit comments

Comments
 (0)