You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: xml/System.Globalization/CultureInfo.xml
+6-8Lines changed: 6 additions & 8 deletions
Original file line number
Diff line number
Diff line change
@@ -583,8 +583,9 @@ For a list of predefined culture names on Windows systems, see the **Language ta
583
583
</Parameters>
584
584
<Docs>
585
585
<paramname="culture">A predefined <seecref="T:System.Globalization.CultureInfo" /> identifier, <seecref="P:System.Globalization.CultureInfo.LCID" /> property of an existing <seecref="T:System.Globalization.CultureInfo" /> object, or Windows-only culture identifier.</param>
586
-
<paramname="useUserOverride">A Boolean that denotes whether to use the user-selected culture settings (<seelangword="true" />) or the default culture settings (<seelangword="false" />).</param>
587
-
<summary>Initializes a new instance of the <seecref="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
+
<paramname="useUserOverride">
587
+
<seelangword="true" /> to use the user-selected culture settings (Windows only); <seelangword="false" /> to use the default culture settings.</param>
588
+
<summary>Initializes a new instance of the <seecref="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>
588
589
<remarks>
589
590
<formattype="text/markdown"><![CDATA[
590
591
@@ -672,8 +673,9 @@ Predefined culture identifiers available on Windows systems are listed in the **
672
673
</Parameters>
673
674
<Docs>
674
675
<paramname="name">A predefined <seecref="T:System.Globalization.CultureInfo" /> name, <seecref="P:System.Globalization.CultureInfo.Name" /> of an existing <seecref="T:System.Globalization.CultureInfo" />, or Windows-only culture name. <paramrefname="name" /> is not case-sensitive.</param>
675
-
<paramname="useUserOverride">A Boolean that denotes whether to use the user-selected culture settings (<seelangword="true" />) or the default culture settings (<seelangword="false" />).</param>
676
-
<summary>Initializes a new instance of the <seecref="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
+
<paramname="useUserOverride">
677
+
<seelangword="true" /> to use the user-selected culture settings (Windows only); <seelangword="false" /> to use the default culture settings.</param>
678
+
<summary>Initializes a new instance of the <seecref="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>
677
679
<remarks>
678
680
<formattype="text/markdown"><![CDATA[
679
681
@@ -896,8 +898,6 @@ If `name` is <xref:System.String.Empty?displayProperty=nameWithType>, the constr
896
898
897
899
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.
898
900
899
-
900
-
901
901
## Examples
902
902
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>.
903
903
@@ -959,8 +959,6 @@ If `name` is <xref:System.String.Empty?displayProperty=nameWithType>, the constr
959
959
960
960
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.
961
961
962
-
963
-
964
962
## Examples
965
963
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.
0 commit comments