Skip to content

Commit 85890e5

Browse files
authored
Improve boolean parameter description (#7332)
1 parent c613843 commit 85890e5

File tree

1 file changed

+6
-8
lines changed

1 file changed

+6
-8
lines changed

xml/System.Globalization/CultureInfo.xml

Lines changed: 6 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -583,8 +583,9 @@ For a list of predefined culture names on Windows systems, see the **Language ta
583583
</Parameters>
584584
<Docs>
585585
<param name="culture">A predefined <see cref="T:System.Globalization.CultureInfo" /> identifier, <see cref="P:System.Globalization.CultureInfo.LCID" /> property of an existing <see cref="T:System.Globalization.CultureInfo" /> object, or Windows-only culture identifier.</param>
586-
<param name="useUserOverride">A Boolean that denotes whether to use the user-selected culture settings (<see langword="true" />) or the default culture settings (<see langword="false" />).</param>
587-
<summary>Initializes a new instance of the <see cref="T:System.Globalization.CultureInfo" /> class based on the culture specified by the culture identifier and on the Boolean that specifies whether to use the user-selected culture settings from the system.</summary>
586+
<param name="useUserOverride">
587+
<see langword="true" /> to use the user-selected culture settings (Windows only); <see langword="false" /> to use the default culture settings.</param>
588+
<summary>Initializes a new instance of the <see cref="T:System.Globalization.CultureInfo" /> class based on the culture specified by the culture identifier and on a value that specifies whether to use the user-selected culture settings from Windows.</summary>
588589
<remarks>
589590
<format type="text/markdown"><![CDATA[
590591
@@ -672,8 +673,9 @@ Predefined culture identifiers available on Windows systems are listed in the **
672673
</Parameters>
673674
<Docs>
674675
<param name="name">A predefined <see cref="T:System.Globalization.CultureInfo" /> name, <see cref="P:System.Globalization.CultureInfo.Name" /> of an existing <see cref="T:System.Globalization.CultureInfo" />, or Windows-only culture name. <paramref name="name" /> is not case-sensitive.</param>
675-
<param name="useUserOverride">A Boolean that denotes whether to use the user-selected culture settings (<see langword="true" />) or the default culture settings (<see langword="false" />).</param>
676-
<summary>Initializes a new instance of the <see cref="T:System.Globalization.CultureInfo" /> class based on the culture specified by name and on the Boolean that specifies whether to use the user-selected culture settings from the system.</summary>
676+
<param name="useUserOverride">
677+
<see langword="true" /> to use the user-selected culture settings (Windows only); <see langword="false" /> to use the default culture settings.</param>
678+
<summary>Initializes a new instance of the <see cref="T:System.Globalization.CultureInfo" /> class based on the culture specified by name and on a value that specifies whether to use the user-selected culture settings from Windows.</summary>
677679
<remarks>
678680
<format type="text/markdown"><![CDATA[
679681
@@ -896,8 +898,6 @@ If `name` is <xref:System.String.Empty?displayProperty=nameWithType>, the constr
896898
897899
The <xref:System.Globalization.CultureInfo.Clone%2A> method creates an enhanced shallow copy. The objects returned by the <xref:System.Globalization.CultureInfo.NumberFormat%2A>, <xref:System.Globalization.CultureInfo.DateTimeFormat%2A>, <xref:System.Globalization.CultureInfo.TextInfo%2A>, and <xref:System.Globalization.CultureInfo.Calendar%2A> properties are also copied. Consequently, the cloned <xref:System.Globalization.CultureInfo> object can modify its copied properties without affecting the original <xref:System.Globalization.CultureInfo> object.
898900
899-
900-
901901
## Examples
902902
The following code example shows that CultureInfo.Clone also clones the <xref:System.Globalization.DateTimeFormatInfo> and <xref:System.Globalization.NumberFormatInfo> instances associated with the <xref:System.Globalization.CultureInfo>.
903903
@@ -959,8 +959,6 @@ If `name` is <xref:System.String.Empty?displayProperty=nameWithType>, the constr
959959
960960
If <xref:System.Globalization.CultureInfo.UseUserOverride%2A> is `true` and the specified culture matches the current culture of Windows, the <xref:System.Globalization.CultureInfo> uses those overrides, including user settings for the properties of the <xref:System.Globalization.DateTimeFormatInfo> instance returned by the <xref:System.Globalization.CultureInfo.DateTimeFormat%2A> property, and the properties of the <xref:System.Globalization.NumberFormatInfo> instance returned by the <xref:System.Globalization.CultureInfo.NumberFormat%2A> property. If the user settings are incompatible with the culture associated with the <xref:System.Globalization.CultureInfo>, for example, if the selected calendar is not one of the <xref:System.Globalization.CultureInfo.OptionalCalendars%2A>, the results of the methods and the values of the properties are undefined.
961961
962-
963-
964962
## Examples
965963
The following code example shows how to create a <xref:System.Globalization.CultureInfo> for Spanish (Spain) with the international sort and another <xref:System.Globalization.CultureInfo> with the traditional sort.
966964

0 commit comments

Comments
 (0)