Update documentation for returns of indexer in IRequestCookieCollection when key is not present (#24497)
This commit is contained in:
parent
8cbe97df4b
commit
a28c2b62dc
|
|
@ -73,14 +73,14 @@ namespace Microsoft.AspNetCore.Http
|
||||||
/// The key of the value to get.
|
/// The key of the value to get.
|
||||||
/// </param>
|
/// </param>
|
||||||
/// <returns>
|
/// <returns>
|
||||||
/// The element with the specified key, or <c>string.Empty</c> if the key is not present.
|
/// The element with the specified key, or <c>null</c> if the key is not present.
|
||||||
/// </returns>
|
/// </returns>
|
||||||
/// <exception cref="System.ArgumentNullException">
|
/// <exception cref="System.ArgumentNullException">
|
||||||
/// key is null.
|
/// key is null.
|
||||||
/// </exception>
|
/// </exception>
|
||||||
/// <remarks>
|
/// <remarks>
|
||||||
/// <see cref="IRequestCookieCollection" /> has a different indexer contract than
|
/// <see cref="IRequestCookieCollection" /> has a different indexer contract than
|
||||||
/// <see cref="IDictionary{TKey, TValue}" />, as it will return <c>string.Empty</c> for missing entries
|
/// <see cref="IDictionary{TKey, TValue}" />, as it will return <c>null</c> for missing entries
|
||||||
/// rather than throwing an Exception.
|
/// rather than throwing an Exception.
|
||||||
/// </remarks>
|
/// </remarks>
|
||||||
string? this[string key] { get; }
|
string? this[string key] { get; }
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue