-
Notifications
You must be signed in to change notification settings - Fork 1.6k
Porting .NET 10 docs from assemblies that don't use /// as source of truth #11876
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Conversation
There was a problem hiding this 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.
xml/System.ComponentModel.DataAnnotations/ValidationContext.xml
Outdated
Show resolved
Hide resolved
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> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
<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> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
<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> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
<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> |
There was a problem hiding this comment.
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 <c>ENCRYPTED PRIVATE KEY</c> PEM label.</para> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
<para>This method supports the <c>ENCRYPTED PRIVATE KEY</c> PEM label.</para> | |
<para>This method supports the <c>ENCRYPTED PRIVATE KEY</c> PEM label.</para> |
<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> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
<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> |
<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> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
<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> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
<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> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
<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> |
There was a problem hiding this comment.
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:

<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> |
There was a problem hiding this comment.
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> |
There was a problem hiding this comment.
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.
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.