Skip to content

Conversation

ericstj
Copy link
Member

@ericstj ericstj commented Oct 1, 2025

I discovered that our process for porting documentation from dotnet/runtime was incorrect. It mentioned to port from our final output, which didn't contain the source-authored docs for assemblies that didn't use /// as source of truth. This fixes that.

I tried to correct for all the problems we noticed in the first wave of changes so hopefully this is less work to correct.

@ericstj ericstj requested a review from a team as a code owner October 1, 2025 17:08
@github-actions github-actions bot added the area-Meta Concerns something that extends across runtime area boundaries, for example, IDisposable. label Oct 1, 2025
Copy link
Contributor

@gewarren gewarren left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Reviewed through System.DirectoryServices.

@ericstj ericstj requested a review from gewarren October 2, 2025 18:29
@ericstj
Copy link
Member Author

ericstj commented Oct 2, 2025

I addressed feedback, tried to fix all formatting issues, and improve the formatting where I could.

<param name="other">The <see cref="T:System.Formats.Tar.TarEntry" /> instance to convert to the PAX format.</param>
<summary>Initializes a new <see cref="T:System.Formats.Tar.PaxTarEntry" /> instance by converting the specified <paramref name="other" /> entry into the PAX format.</summary>
<remarks>To be added.</remarks>
<remarks>When converting a <see cref="T:System.Formats.Tar.GnuTarEntry" /> to <see cref="T:System.Formats.Tar.PaxTarEntry" /> using this constructor, the <see cref="P:System.Formats.Tar.GnuTarEntry.AccessTime" /> and <see cref="P:System.Formats.Tar.GnuTarEntry.ChangeTime" /> values will get transfered to the <see cref="P:System.Formats.Tar.PaxTarEntry.ExtendedAttributes" /> dictionary only if their values are not <see langword="default" /> (which is <see cref="F:System.DateTimeOffset.MinValue" />).</remarks>
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
<remarks>When converting a <see cref="T:System.Formats.Tar.GnuTarEntry" /> to <see cref="T:System.Formats.Tar.PaxTarEntry" /> using this constructor, the <see cref="P:System.Formats.Tar.GnuTarEntry.AccessTime" /> and <see cref="P:System.Formats.Tar.GnuTarEntry.ChangeTime" /> values will get transfered to the <see cref="P:System.Formats.Tar.PaxTarEntry.ExtendedAttributes" /> dictionary only if their values are not <see langword="default" /> (which is <see cref="F:System.DateTimeOffset.MinValue" />).</remarks>
<remarks>When converting a <see cref="T:System.Formats.Tar.GnuTarEntry" /> to <see cref="T:System.Formats.Tar.PaxTarEntry" /> using this constructor, the <see cref="P:System.Formats.Tar.GnuTarEntry.AccessTime" /> and <see cref="P:System.Formats.Tar.GnuTarEntry.ChangeTime" /> values are transferred to the <see cref="P:System.Formats.Tar.PaxTarEntry.ExtendedAttributes" /> dictionary only if their values are not <see langword="default" /> (which is <see cref="F:System.DateTimeOffset.MinValue" />).</remarks>

<Docs>
<summary>To be added.</summary>
<returns>To be added.</returns>
<summary>Returns a clone of the current instance, with a copy of the current instance's internal state.</summary>
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
<summary>Returns a clone of the current instance, with a copy of the current instance's internal state.</summary>
<summary>Creates a clone of the current instance with a copy of the current instance's internal state.</summary>

<Docs>
<summary>To be added.</summary>
<returns>To be added.</returns>
<summary>Returns a clone of the current instance, with a copy of the current instance's internal state.</summary>
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
<summary>Returns a clone of the current instance, with a copy of the current instance's internal state.</summary>
<summary>Creates a clone of the current instance with a copy of the current instance's internal state.</summary>

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Seems like these remarks don't belong in public docs?

<exception cref="T:System.Security.Cryptography.CryptographicException"><para>The password is incorrect.</para><para>-or-</para><para>The base-64 decoded contents of the PEM text from <paramref name="source" /> do not represent an ASN.1-BER-encoded PKCS#8 EncryptedPrivateKeyInfo structure.</para><para>-or-</para><para>The base-64 decoded contents of the PEM text from <paramref name="source" /> indicate the key is for an algorithm other than the algorithm represented by this instance.</para><para>-or-</para><para>The base-64 decoded contents of the PEM text from <paramref name="source" /> represent the key in a format that is not supported.</para><para>-or-</para><para>An error occurred while importing the key.</para><para>-or-</para><para>The specified Composite ML-DSA algorithm is not supported.</para></exception>
<remarks>
<para>Unsupported or malformed PEM-encoded objects will be ignored. If multiple supported PEM labels are found, an exception is thrown to prevent importing a key when the key is ambiguous.</para>
<para>This method supports the &lt;c&gt;ENCRYPTED PRIVATE KEY&lt;/c&gt; PEM label.</para>
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
<para>This method supports the &lt;c&gt;ENCRYPTED PRIVATE KEY&lt;/c&gt; PEM label.</para>
<para>This method supports the <c>ENCRYPTED PRIVATE KEY</c> PEM label.</para>

Comment on lines +789 to +791
<param name="assemblyName">Assembly name.</param>
<summary>Creates a new <see cref="T:System.Reflection.Metadata.TypeName" /> object that represents current simple name with provided assembly name.</summary>
<returns>Created simple name.</returns>
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
<param name="assemblyName">Assembly name.</param>
<summary>Creates a new <see cref="T:System.Reflection.Metadata.TypeName" /> object that represents current simple name with provided assembly name.</summary>
<returns>Created simple name.</returns>
<param name="assemblyName">The assembly name.</param>
<summary>Creates a new <see cref="T:System.Reflection.Metadata.TypeName" /> object that represents the current simple name with the provided assembly name.</summary>
<returns>The created simple name.</returns>

Comment on lines 57 to 58
<summary>Limits the maximum <see cref="M:System.Reflection.Metadata.TypeName.GetNodeCount">number of nodes</see> that the parser can handle.</summary>
<value>To be added.</value>
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
<summary>Limits the maximum <see cref="M:System.Reflection.Metadata.TypeName.GetNodeCount">number of nodes</see> that the parser can handle.</summary>
<value>To be added.</value>
<summary>Gets or sets the maximum <see cref="M:System.Reflection.Metadata.TypeName.GetNodeCount">number of nodes</see> that the parser can handle.</summary>
<value>The maximum number of nodes that the parser can handle. The default is 20.</value>

<summary>Limits the maximum <see cref="M:System.Reflection.Metadata.TypeName.GetNodeCount">number of nodes</see> that the parser can handle.</summary>
<value>To be added.</value>
<remarks>To be added.</remarks>
<remarks><para>Setting this to a large value can render <see cref="T:System.Reflection.Metadata.TypeName" /> susceptible to Denial of Service attacks when parsing or handling malicious input.</para><para>The default value is 20.</para></remarks>
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
<remarks><para>Setting this to a large value can render <see cref="T:System.Reflection.Metadata.TypeName" /> susceptible to Denial of Service attacks when parsing or handling malicious input.</para><para>The default value is 20.</para></remarks>
<remarks>Setting this property to a large value can render <see cref="T:System.Reflection.Metadata.TypeName" /> susceptible to Denial of Service attacks when parsing or handling malicious input.</remarks>

<Docs>
<summary>To be added.</summary>
<returns>To be added.</returns>
<summary>Get the number of properties contained within the current object value.</summary>
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
<summary>Get the number of properties contained within the current object value.</summary>
<summary>Gets the number of properties contained within the current object value.</summary>

<para>This value is used as follows:</para>
<para><strong>Reading (opening) ZIP archive files:</strong></para>
<para>If <paramref name="entryNameEncoding" /> is not specified (<c>== null</c>):</para>
<list>
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This list (and others like it, I assume), isn't rendering:

image

@dotnet-policy-service dotnet-policy-service bot added the needs-author-action An issue or pull request that requires more info or actions from the author. label Oct 3, 2025
<para>If <see cref="F:System.IO.Compression.ZipArchiveMode.Create" /> is specified, the file is opened with <code>System.IO.FileMode.CreateNew</code>, and will throw a <code>System.IO.IOException</code> if the file already exists.</para>
<para>If <see cref="F:System.IO.Compression.ZipArchiveMode.Update" /> is specified, the file is opened with <code>System.IO.FileMode.OpenOrCreate</code>.</para>
<para>If the file exists and is a zip file, its entries will become accessible and can be modified, and new entries can be created.</para>
<para>If the file exists and is not a zip file, a <see cref="T:System.IO.Compressions.ZipArchiveException" /> is thrown.</para>
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I know I have a typo in Compressions, but still, this exception doesn't seem to exist.

<para>If <see cref="F:System.IO.Compression.ZipArchiveMode.Create" /> is specified, the file is opened with <code>System.IO.FileMode.CreateNew</code>, and will throw a <code>System.IO.IOException</code> if the file already exists.</para>
<para>If <see cref="F:System.IO.Compression.ZipArchiveMode.Update" /> is specified, the file is opened with <code>System.IO.FileMode.OpenOrCreate</code>.</para>
<para>If the file exists and is a zip file, its entries will become accessible and can be modified, and new entries can be created.</para>
<para>If the file exists and is not a zip file, a <see cref="T:System.IO.Compressions.ZipArchiveException" /> is thrown.</para>
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I know I have a typo in Compressions, but still, this exception doesn't seem to exist.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area-Meta Concerns something that extends across runtime area boundaries, for example, IDisposable. needs-author-action An issue or pull request that requires more info or actions from the author.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants