Skip to content

Commit fe85cd4

Browse files
authored
Fix null vs empty string in InterpolatedStringHandlerArgumentAttribute XML comments (#79069)
1 parent 92ad3c3 commit fe85cd4

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/libraries/System.Private.CoreLib/src/System/Runtime/CompilerServices/InterpolatedStringHandlerArgumentAttribute.cs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,16 +9,16 @@ public sealed class InterpolatedStringHandlerArgumentAttribute : Attribute
99
{
1010
/// <summary>Initializes a new instance of the <see cref="InterpolatedStringHandlerArgumentAttribute"/> class.</summary>
1111
/// <param name="argument">The name of the argument that should be passed to the handler.</param>
12-
/// <remarks><see langword="null"/> may be used as the name of the receiver in an instance method.</remarks>
12+
/// <remarks>The empty string may be used as the name of the receiver in an instance method.</remarks>
1313
public InterpolatedStringHandlerArgumentAttribute(string argument) => Arguments = new string[] { argument };
1414

1515
/// <summary>Initializes a new instance of the <see cref="InterpolatedStringHandlerArgumentAttribute"/> class.</summary>
1616
/// <param name="arguments">The names of the arguments that should be passed to the handler.</param>
17-
/// <remarks><see langword="null"/> may be used as the name of the receiver in an instance method.</remarks>
17+
/// <remarks>The empty string may be used as the name of the receiver in an instance method.</remarks>
1818
public InterpolatedStringHandlerArgumentAttribute(params string[] arguments) => Arguments = arguments;
1919

2020
/// <summary>Gets the names of the arguments that should be passed to the handler.</summary>
21-
/// <remarks><see langword="null"/> may be used as the name of the receiver in an instance method.</remarks>
21+
/// <remarks>The empty string may be used as the name of the receiver in an instance method.</remarks>
2222
public string[] Arguments { get; }
2323
}
2424
}

0 commit comments

Comments
 (0)