Skip to content

Commit 11c86d8

Browse files
authored
Doc updates (#108722)
1 parent e32148a commit 11c86d8

File tree

3 files changed

+17
-19
lines changed

3 files changed

+17
-19
lines changed

src/libraries/Microsoft.Extensions.Configuration.Ini/src/IniConfigurationExtensions.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ public static IConfigurationBuilder AddIniFile(this IConfigurationBuilder builde
3131
/// <param name="builder">The <see cref="IConfigurationBuilder"/> to add to.</param>
3232
/// <param name="path">The path relative to the base path stored in
3333
/// <see cref="IConfigurationBuilder.Properties"/> of <paramref name="builder"/>.</param>
34-
/// <param name="optional">Whether the file is optional.</param>
34+
/// <param name="optional"><see langword="true"/> if the file is optional; otherwise, <see langword="false"/> .</param>
3535
/// <returns>The <see cref="IConfigurationBuilder"/>.</returns>
3636
public static IConfigurationBuilder AddIniFile(this IConfigurationBuilder builder, string path, bool optional)
3737
{
@@ -45,7 +45,7 @@ public static IConfigurationBuilder AddIniFile(this IConfigurationBuilder builde
4545
/// <param name="path">Path relative to the base path stored in
4646
/// <see cref="IConfigurationBuilder.Properties"/> of <paramref name="builder"/>.</param>
4747
/// <param name="optional"><see langword="true"/> if the file is optional; otherwise, <see langword="false"/>.</param>
48-
/// <param name="reloadOnChange">Whether the configuration should be reloaded if the file changes; otherwise, <see langword="false"/>.</param>
48+
/// <param name="reloadOnChange"><see langword="true"/> if the configuration should be reloaded if the file changes; otherwise, <see langword="false"/>.</param>
4949
/// <returns>The <see cref="IConfigurationBuilder"/>.</returns>
5050
public static IConfigurationBuilder AddIniFile(this IConfigurationBuilder builder, string path, bool optional, bool reloadOnChange)
5151
{

src/libraries/System.Formats.Nrbf/src/System/Formats/Nrbf/PayloadOptions.cs

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
namespace System.Formats.Nrbf;
77

88
/// <summary>
9-
/// Defines a variety of configuration options for decoding NRBF payloads.
9+
/// Defines configuration options for decoding NRBF payloads.
1010
/// </summary>
1111
public sealed class PayloadOptions
1212
{
@@ -21,9 +21,9 @@ public PayloadOptions() { }
2121
public TypeNameParseOptions? TypeNameParseOptions { get; set; }
2222

2323
/// <summary>
24-
/// Gets or sets a value that indicates whether type name truncation is undone.
24+
/// Gets or sets a value that indicates whether type-name truncation is undone.
2525
/// </summary>
26-
/// <value><see langword="true" /> if truncated type names should be reassembled; otherwise, <see langword="false" />.</value>
26+
/// <value><see langword="true" /> if truncated type names should be reassembled; otherwise, <see langword="false" />. The default value is <see langword="false" />.</value>
2727
/// <remarks>
2828
/// <para>
2929
/// Example:
@@ -35,7 +35,6 @@ public PayloadOptions() { }
3535
/// Setting this to <see langword="true" /> can render <see cref="NrbfDecoder"/> susceptible to Denial of Service
3636
/// attacks when parsing or handling malicious input.
3737
/// </para>
38-
/// <para>The default value is <see langword="false" />.</para>
3938
/// </remarks>
4039
public bool UndoTruncatedTypeNames { get; set; }
4140
}

src/libraries/System.Security.Cryptography/src/System/Security/Cryptography/IncrementalHash.cs

Lines changed: 12 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ public void AppendData(byte[] data)
6464
}
6565

6666
/// <summary>
67-
/// Append <paramref name="count"/> bytes of <paramref name="data"/>, starting at <paramref name="offset"/>,
67+
/// Appends <paramref name="count"/> bytes of <paramref name="data"/>, starting at <paramref name="offset"/>,
6868
/// to the data already processed in the hash or HMAC.
6969
/// </summary>
7070
/// <param name="data">The data to process.</param>
@@ -113,9 +113,8 @@ public void AppendData(ReadOnlySpan<byte> data)
113113
}
114114

115115
/// <summary>
116-
/// Retrieve the hash or HMAC for the data accumulated from prior calls to
117-
/// <see cref="AppendData(byte[])"/>, and return to the state the object
118-
/// was in at construction.
116+
/// Retrieves the hash or HMAC for the data accumulated from prior calls to
117+
/// <see cref="AppendData(byte[])"/>, and resets the object to its initial state.
119118
/// </summary>
120119
/// <returns>The computed hash or HMAC.</returns>
121120
/// <exception cref="ObjectDisposedException">The object has already been disposed.</exception>
@@ -239,7 +238,7 @@ public int GetCurrentHash(Span<byte> destination)
239238
/// The buffer to receive the hash or HMAC value.
240239
/// </param>
241240
/// <param name="bytesWritten">
242-
/// When this method returns, the total number of bytes written into <paramref name="destination" />.
241+
/// When this method returns, contains the total number of bytes written into <paramref name="destination" />.
243242
/// This parameter is treated as uninitialized.
244243
/// </param>
245244
/// <returns>
@@ -275,7 +274,7 @@ private int GetCurrentHashCore(Span<byte> destination)
275274
/// Creates a new instance of <see cref="IncrementalHash" /> with the existing appended data preserved.
276275
/// </summary>
277276
/// <returns>A clone of the current instance.</returns>
278-
/// <exception cref="CryptographicException">An error has occurred during the operation.</exception>
277+
/// <exception cref="CryptographicException">An error occurred during the operation.</exception>
279278
/// <exception cref="ObjectDisposedException">The object has already been disposed.</exception>
280279
public IncrementalHash Clone()
281280
{
@@ -309,7 +308,7 @@ public void Dispose()
309308
}
310309

311310
/// <summary>
312-
/// Create an <see cref="IncrementalHash"/> for the algorithm specified by <paramref name="hashAlgorithm"/>.
311+
/// Creates an <see cref="IncrementalHash"/> for the algorithm specified by <paramref name="hashAlgorithm"/>.
313312
/// </summary>
314313
/// <param name="hashAlgorithm">The name of the hash algorithm to perform.</param>
315314
/// <returns>
@@ -330,15 +329,15 @@ public static IncrementalHash CreateHash(HashAlgorithmName hashAlgorithm)
330329
}
331330

332331
/// <summary>
333-
/// Create an <see cref="IncrementalHash"/> for the Hash-based Message Authentication Code (HMAC)
334-
/// algorithm utilizing the hash algorithm specified by <paramref name="hashAlgorithm"/>, and a
332+
/// Creates an <see cref="IncrementalHash"/> for the Hash-based Message Authentication Code (HMAC)
333+
/// algorithm using the hash algorithm specified by <paramref name="hashAlgorithm"/> and a
335334
/// key specified by <paramref name="key"/>.
336335
/// </summary>
337336
/// <param name="hashAlgorithm">The name of the hash algorithm to perform within the HMAC.</param>
338337
/// <param name="key">
339338
/// The secret key for the HMAC. The key can be any length, but a key longer than the output size
340339
/// of the hash algorithm specified by <paramref name="hashAlgorithm"/> will be hashed (using the
341-
/// algorithm specified by <paramref name="hashAlgorithm"/>) to derive a correctly-sized key. Therefore,
340+
/// algorithm specified by <paramref name="hashAlgorithm"/>) to derive a correctly sized key. Therefore,
342341
/// the recommended size of the secret key is the output size of the hash specified by
343342
/// <paramref name="hashAlgorithm"/>.
344343
/// </param>
@@ -359,15 +358,15 @@ public static IncrementalHash CreateHMAC(HashAlgorithmName hashAlgorithm, byte[]
359358
}
360359

361360
/// <summary>
362-
/// Create an <see cref="IncrementalHash"/> for the Hash-based Message Authentication Code (HMAC)
363-
/// algorithm utilizing the hash algorithm specified by <paramref name="hashAlgorithm"/>, and a
361+
/// Creates an <see cref="IncrementalHash"/> for the Hash-based Message Authentication Code (HMAC)
362+
/// algorithm using the hash algorithm specified by <paramref name="hashAlgorithm"/> and a
364363
/// key specified by <paramref name="key"/>.
365364
/// </summary>
366365
/// <param name="hashAlgorithm">The name of the hash algorithm to perform within the HMAC.</param>
367366
/// <param name="key">
368367
/// The secret key for the HMAC. The key can be any length, but a key longer than the output size
369368
/// of the hash algorithm specified by <paramref name="hashAlgorithm"/> will be hashed (using the
370-
/// algorithm specified by <paramref name="hashAlgorithm"/>) to derive a correctly-sized key. Therefore,
369+
/// algorithm specified by <paramref name="hashAlgorithm"/>) to derive a correctly sized key. Therefore,
371370
/// the recommended size of the secret key is the output size of the hash specified by
372371
/// <paramref name="hashAlgorithm"/>.
373372
/// </param>

0 commit comments

Comments
 (0)