diff --git a/xml/System.Globalization/CompareInfo.xml b/xml/System.Globalization/CompareInfo.xml index 2d921125e8f..8b745cc73bc 100644 --- a/xml/System.Globalization/CompareInfo.xml +++ b/xml/System.Globalization/CompareInfo.xml @@ -320,7 +320,7 @@ <Docs> <param name="string1">The first string to compare.</param> <param name="string2">The second string to compare.</param> - <param name="options">A value that defines how <paramref name="string1" /> and <paramref name="string2" /> should be compared. <paramref name="options" /> is either the enumeration value <see cref="F:System.Globalization.CompareOptions.Ordinal" />, or a bitwise combination of one or more of the following values: <see cref="F:System.Globalization.CompareOptions.IgnoreCase" />, <see cref="F:System.Globalization.CompareOptions.IgnoreSymbols" />, <see cref="F:System.Globalization.CompareOptions.IgnoreNonSpace" />, <see cref="F:System.Globalization.CompareOptions.IgnoreWidth" />, <see cref="F:System.Globalization.CompareOptions.IgnoreKanaType" />, and <see cref="F:System.Globalization.CompareOptions.StringSort" />.</param> + <param name="options">A value that defines how <paramref name="string1" /> and <paramref name="string2" /> should be compared. <paramref name="options" /> is either the enumeration value <see cref="F:System.Globalization.CompareOptions.Ordinal" />, or a bitwise combination of one or more of the following values: <see cref="F:System.Globalization.CompareOptions.IgnoreCase" />, <see cref="F:System.Globalization.CompareOptions.IgnoreSymbols" />, <see cref="F:System.Globalization.CompareOptions.IgnoreNonSpace" />, <see cref="F:System.Globalization.CompareOptions.IgnoreWidth" />, <see cref="F:System.Globalization.CompareOptions.IgnoreKanaType" />, <see cref="F:System.Globalization.CompareOptions.NumericOrdering" />, and <see cref="F:System.Globalization.CompareOptions.StringSort" />.</param> <summary>Compares two strings using the specified <see cref="T:System.Globalization.CompareOptions" /> value.</summary> <returns>A 32-bit signed integer indicating the lexical relationship between the two comparands. @@ -549,7 +549,7 @@ <param name="offset1">The zero-based index of the character in <paramref name="string1" /> at which to start comparing.</param> <param name="string2">The second string to compare.</param> <param name="offset2">The zero-based index of the character in <paramref name="string2" /> at which to start comparing.</param> - <param name="options">A value that defines how <paramref name="string1" /> and <paramref name="string2" /> should be compared. <paramref name="options" /> is either the enumeration value <see cref="F:System.Globalization.CompareOptions.Ordinal" />, or a bitwise combination of one or more of the following values: <see cref="F:System.Globalization.CompareOptions.IgnoreCase" />, <see cref="F:System.Globalization.CompareOptions.IgnoreSymbols" />, <see cref="F:System.Globalization.CompareOptions.IgnoreNonSpace" />, <see cref="F:System.Globalization.CompareOptions.IgnoreWidth" />, <see cref="F:System.Globalization.CompareOptions.IgnoreKanaType" />, and <see cref="F:System.Globalization.CompareOptions.StringSort" />.</param> + <param name="options">A value that defines how <paramref name="string1" /> and <paramref name="string2" /> should be compared. <paramref name="options" /> is either the enumeration value <see cref="F:System.Globalization.CompareOptions.Ordinal" />, or a bitwise combination of one or more of the following values: <see cref="F:System.Globalization.CompareOptions.IgnoreCase" />, <see cref="F:System.Globalization.CompareOptions.IgnoreSymbols" />, <see cref="F:System.Globalization.CompareOptions.IgnoreNonSpace" />, <see cref="F:System.Globalization.CompareOptions.IgnoreWidth" />, <see cref="F:System.Globalization.CompareOptions.IgnoreKanaType" />, <see cref="F:System.Globalization.CompareOptions.NumericOrdering" />, and <see cref="F:System.Globalization.CompareOptions.StringSort" />.</param> <summary>Compares the end section of a string with the end section of another string using the specified <see cref="T:System.Globalization.CompareOptions" /> value.</summary> <returns>A 32-bit signed integer indicating the lexical relationship between the two comparands. @@ -804,7 +804,7 @@ <param name="string2">The second string to compare.</param> <param name="offset2">The zero-based index of the character in <paramref name="string2" /> at which to start comparing.</param> <param name="length2">The number of consecutive characters in <paramref name="string2" /> to compare.</param> - <param name="options">A value that defines how <paramref name="string1" /> and <paramref name="string2" /> should be compared. <paramref name="options" /> is either the enumeration value <see cref="F:System.Globalization.CompareOptions.Ordinal" />, or a bitwise combination of one or more of the following values: <see cref="F:System.Globalization.CompareOptions.IgnoreCase" />, <see cref="F:System.Globalization.CompareOptions.IgnoreSymbols" />, <see cref="F:System.Globalization.CompareOptions.IgnoreNonSpace" />, <see cref="F:System.Globalization.CompareOptions.IgnoreWidth" />, <see cref="F:System.Globalization.CompareOptions.IgnoreKanaType" />, and <see cref="F:System.Globalization.CompareOptions.StringSort" />.</param> + <param name="options">A value that defines how <paramref name="string1" /> and <paramref name="string2" /> should be compared. <paramref name="options" /> is either the enumeration value <see cref="F:System.Globalization.CompareOptions.Ordinal" />, or a bitwise combination of one or more of the following values: <see cref="F:System.Globalization.CompareOptions.IgnoreCase" />, <see cref="F:System.Globalization.CompareOptions.IgnoreSymbols" />, <see cref="F:System.Globalization.CompareOptions.IgnoreNonSpace" />, <see cref="F:System.Globalization.CompareOptions.IgnoreWidth" />, <see cref="F:System.Globalization.CompareOptions.IgnoreKanaType" />, <see cref="F:System.Globalization.CompareOptions.NumericOrdering" />, and <see cref="F:System.Globalization.CompareOptions.StringSort" />.</param> <summary>Compares a section of one string with a section of another string using the specified <see cref="T:System.Globalization.CompareOptions" /> value.</summary> <returns>A 32-bit signed integer indicating the lexical relationship between the two comparands. @@ -1540,7 +1540,7 @@ </Parameters> <Docs> <param name="source">The string for which a <see cref="T:System.Globalization.SortKey" /> object is obtained.</param> - <param name="options">A bitwise combination of one or more of the following enumeration values that define how the sort key is calculated: <see cref="F:System.Globalization.CompareOptions.IgnoreCase" />, <see cref="F:System.Globalization.CompareOptions.IgnoreSymbols" />, <see cref="F:System.Globalization.CompareOptions.IgnoreNonSpace" />, <see cref="F:System.Globalization.CompareOptions.IgnoreWidth" />, <see cref="F:System.Globalization.CompareOptions.IgnoreKanaType" />, and <see cref="F:System.Globalization.CompareOptions.StringSort" />.</param> + <param name="options">A bitwise combination of one or more of the following enumeration values that define how the sort key is calculated: <see cref="F:System.Globalization.CompareOptions.IgnoreCase" />, <see cref="F:System.Globalization.CompareOptions.IgnoreSymbols" />, <see cref="F:System.Globalization.CompareOptions.IgnoreNonSpace" />, <see cref="F:System.Globalization.CompareOptions.IgnoreWidth" />, <see cref="F:System.Globalization.CompareOptions.IgnoreKanaType" />, <see cref="F:System.Globalization.CompareOptions.NumericOrdering" />, and <see cref="F:System.Globalization.CompareOptions.StringSort" />.</param> <summary>Gets a <see cref="T:System.Globalization.SortKey" /> object for the specified string using the specified <see cref="T:System.Globalization.CompareOptions" /> value.</summary> <returns>The <see cref="T:System.Globalization.SortKey" /> object that contains the sort key for the specified string.</returns> <remarks> @@ -1988,7 +1988,7 @@ Use <xref:System.Globalization.CompareInfo.GetSortKeyLength(System.ReadOnlySpan{ ## Remarks The source string is searched forward starting at the beginning of the string and ending at the end of the string. - The <xref:System.Globalization.CompareOptions.StringSort?displayProperty=nameWithType> value is not valid for this method. + The <xref:System.Globalization.CompareOptions.NumericOrdering?displayProperty=nameWithType> and <xref:System.Globalization.CompareOptions.StringSort?displayProperty=nameWithType> values are not valid for this method. If `options` does not include the <xref:System.Globalization.CompareOptions.Ordinal> value, this overload performs a culture-sensitive search. If the character is a Unicode value representing a precomposed character, such as the ligature "Æ" (U+00C6), it might be considered equivalent to any occurrence of its components in the correct sequence, such as "AE" (U+0041, U+0045), depending on the culture. If `options` includes the <xref:System.Globalization.CompareOptions.Ordinal> value, this overload performs an ordinal (culture-insensitive) search. A character is considered equivalent to another character only if the Unicode values are the same. Overloads of <xref:System.String.IndexOf%2A?displayProperty=nameWithType> that search for a character perform an ordinal search, whereas those that search for a string perform a culture-sensitive search. @@ -2169,7 +2169,7 @@ Use <xref:System.Globalization.CompareInfo.GetSortKeyLength(System.ReadOnlySpan{ ## Remarks The source string is searched forward starting at the beginning of the string and ending at the end of the string. - The <xref:System.Globalization.CompareOptions.StringSort?displayProperty=nameWithType> value is not valid for this method. + The <xref:System.Globalization.CompareOptions.NumericOrdering?displayProperty=nameWithType> and <xref:System.Globalization.CompareOptions.StringSort?displayProperty=nameWithType> values are not valid for this method. If `options` does not include the <xref:System.Globalization.CompareOptions.Ordinal> value, this overload performs a culture-sensitive search. A Unicode value representing a precomposed character, such as the ligature "Æ" (U+00C6), might be considered equivalent to any occurrence of the character's components in the correct sequence, such as "AE" (U+0041, U+0045), depending on the culture. If `options` includes the <xref:System.Globalization.CompareOptions.Ordinal> value, this overload performs an ordinal (culture-insensitive) search, where the Unicode values are compared. @@ -2416,7 +2416,7 @@ This method has greater overhead than other <xref:System.Globalization.CompareIn ## Remarks The source string is searched forward starting at `startIndex` and ending at the end of the string. - The <xref:System.Globalization.CompareOptions.StringSort?displayProperty=nameWithType> value is not valid for this method. + The <xref:System.Globalization.CompareOptions.NumericOrdering?displayProperty=nameWithType> and <xref:System.Globalization.CompareOptions.StringSort?displayProperty=nameWithType> values are not valid for this method. If `options` does not include the <xref:System.Globalization.CompareOptions.Ordinal> value, this overload performs a culture-sensitive search. If the character is a Unicode value representing a precomposed character, such as the ligature "Æ" (U+00C6), it might be considered equivalent to any occurrence of its components in the correct sequence, such as "AE" (U+0041, U+0045), depending on the culture. If `options` includes the <xref:System.Globalization.CompareOptions.Ordinal> value, this overload performs an ordinal (culture-insensitive) search. A character is considered equivalent to another character only if the Unicode values are the same. Overloads of <xref:System.String.IndexOf%2A?displayProperty=nameWithType> that search for a character perform an ordinal search, whereas those that search for a string perform a culture-sensitive search. @@ -2613,7 +2613,7 @@ This method has greater overhead than other <xref:System.Globalization.CompareIn ## Remarks The source string is searched forward starting at `startIndex` and ending at the end of the string. - The <xref:System.Globalization.CompareOptions.StringSort?displayProperty=nameWithType> value is not valid for this method. + The <xref:System.Globalization.CompareOptions.NumericOrdering?displayProperty=nameWithType> and <xref:System.Globalization.CompareOptions.StringSort?displayProperty=nameWithType> values are not valid for this method. If `options` does not include the <xref:System.Globalization.CompareOptions.Ordinal> value, this overload performs a culture-sensitive search. A Unicode value representing a precomposed character, such as the ligature "Æ" (U+00C6), might be considered equivalent to any occurrence of the character's components in the correct sequence, such as "AE" (U+0041, U+0045), depending on the culture. If `options` includes the <xref:System.Globalization.CompareOptions.Ordinal> value, this overload performs an ordinal (culture-insensitive) search, where the Unicode values are compared. @@ -2830,7 +2830,7 @@ This method has greater overhead than other <xref:System.Globalization.CompareIn ## Remarks The source string is searched forward starting at `startIndex` and ending at `startIndex` + `count` - 1. - The <xref:System.Globalization.CompareOptions.StringSort?displayProperty=nameWithType> value is not valid for this method. + The <xref:System.Globalization.CompareOptions.NumericOrdering?displayProperty=nameWithType> and <xref:System.Globalization.CompareOptions.StringSort?displayProperty=nameWithType> values are not valid for this method. If `options` does not include the <xref:System.Globalization.CompareOptions.Ordinal> value, this overload performs a culture-sensitive search. If the character is a Unicode value representing a precomposed character, such as the ligature "Æ" (U+00C6), it might be considered equivalent to any occurrence of its components in the correct sequence, such as "AE" (U+0041, U+0045), depending on the culture. If `options` includes the <xref:System.Globalization.CompareOptions.Ordinal> value, this overload performs an ordinal (culture-insensitive) search. A character is considered equivalent to another character only if the Unicode values are the same. Overloads of <xref:System.String.IndexOf%2A?displayProperty=nameWithType> that search for a character perform an ordinal search, whereas those that search for a string perform a culture-sensitive search. @@ -2943,7 +2943,7 @@ This method has greater overhead than other <xref:System.Globalization.CompareIn ## Remarks The source string is searched forward starting at `startIndex` and ending at `startIndex` + `count` - 1. - The <xref:System.Globalization.CompareOptions.StringSort?displayProperty=nameWithType> value is not valid for this method. + The <xref:System.Globalization.CompareOptions.NumericOrdering?displayProperty=nameWithType> and <xref:System.Globalization.CompareOptions.StringSort?displayProperty=nameWithType> values are not valid for this method. If `options` does not include the <xref:System.Globalization.CompareOptions.Ordinal> value, this overload performs a culture-sensitive search. A Unicode value representing a precomposed character, such as the ligature "Æ" (U+00C6), might be considered equivalent to any occurrence of the character's components in the correct sequence, such as "AE" (U+0041, U+0045), depending on the culture. If `options` includes the <xref:System.Globalization.CompareOptions.Ordinal> value, this overload performs an ordinal (culture-insensitive) search, where the Unicode values are compared. @@ -3196,7 +3196,7 @@ This method has greater overhead than other <xref:System.Globalization.CompareIn ## Remarks Every string starts and ends with an empty substring (""); therefore, if `prefix` is an empty string, this method returns `true`. - The <xref:System.Globalization.CompareOptions.StringSort?displayProperty=nameWithType> value is not valid for this method. + The <xref:System.Globalization.CompareOptions.NumericOrdering?displayProperty=nameWithType> and <xref:System.Globalization.CompareOptions.StringSort?displayProperty=nameWithType> values are not valid for this method. > [!NOTE] > When possible, you should call string comparison methods that have a parameter of type <xref:System.Globalization.CompareOptions> to specify the kind of comparison expected. As a general rule, use linguistic options (using the current culture) for comparing strings displayed in the user interface and specify <xref:System.Globalization.CompareOptions.Ordinal?displayProperty=nameWithType> or <xref:System.Globalization.CompareOptions.OrdinalIgnoreCase?displayProperty=nameWithType> for security comparisons. @@ -3698,7 +3698,7 @@ This method has greater overhead than other <xref:System.Globalization.CompareIn ## Remarks Every string starts and ends with an empty substring (""); therefore, if `suffix` is an empty string, this method returns `true`. - The <xref:System.Globalization.CompareOptions.StringSort?displayProperty=nameWithType> value is not valid for this method. + The <xref:System.Globalization.CompareOptions.NumericOrdering?displayProperty=nameWithType> and <xref:System.Globalization.CompareOptions.StringSort?displayProperty=nameWithType> values are not valid for this method. > [!NOTE] > When possible, you should call string comparison methods that have a parameter of type <xref:System.Globalization.CompareOptions> to specify the kind of comparison expected. As a general rule, use linguistic options (using the current culture) for comparing strings displayed in the user interface and specify <xref:System.Globalization.CompareOptions.Ordinal?displayProperty=nameWithType> or <xref:System.Globalization.CompareOptions.OrdinalIgnoreCase?displayProperty=nameWithType> for security comparisons. @@ -4120,7 +4120,7 @@ This method has greater overhead than other <xref:System.Globalization.CompareIn ## Remarks The source string is searched backward starting at the end of the string and ending at the beginning of the string. - The <xref:System.Globalization.CompareOptions.StringSort?displayProperty=nameWithType> value is not valid for this method. + The <xref:System.Globalization.CompareOptions.NumericOrdering?displayProperty=nameWithType> and <xref:System.Globalization.CompareOptions.StringSort?displayProperty=nameWithType> values are not valid for this method. If `options` does not include the <xref:System.Globalization.CompareOptions.Ordinal> value, this overload performs a culture-sensitive search. If the character is a Unicode value representing a precomposed character, such as the ligature "Æ" (U+00C6), it might be considered equivalent to any occurrence of its components in the correct sequence, such as "AE" (U+0041, U+0045), depending on the culture. If `options` includes the <xref:System.Globalization.CompareOptions.Ordinal> value, this overload performs an ordinal (culture-insensitive) search. A character is considered equivalent to another character only if the Unicode values are the same. Overloads of <xref:System.String.LastIndexOf%2A?displayProperty=nameWithType> that search for a character perform an ordinal search, whereas those that search for a string perform a culture-sensitive search. @@ -4307,7 +4307,7 @@ This method has greater overhead than other <xref:System.Globalization.CompareIn ## Remarks The source string is searched backward starting at the end of the string and ending at the beginning of the string. - The <xref:System.Globalization.CompareOptions.StringSort?displayProperty=nameWithType> value is not valid for this method. + The <xref:System.Globalization.CompareOptions.NumericOrdering?displayProperty=nameWithType> and <xref:System.Globalization.CompareOptions.StringSort?displayProperty=nameWithType> values are not valid for this method. If `options` does not include the <xref:System.Globalization.CompareOptions.Ordinal> value, this overload performs a culture-sensitive search. A Unicode value representing a precomposed character, such as the ligature "Æ" (U+00C6), might be considered equivalent to any occurrence of the character's components in the correct sequence, such as "AE" (U+0041, U+0045), depending on the culture. If `options` includes the <xref:System.Globalization.CompareOptions.Ordinal> value, this overload performs an ordinal (culture-insensitive) search, where the Unicode values are compared. @@ -4552,7 +4552,7 @@ This method has greater overhead than other <xref:System.Globalization.CompareIn ## Remarks The source string is searched backward starting at `startIndex` and ending at the beginning of the string. - The <xref:System.Globalization.CompareOptions.StringSort?displayProperty=nameWithType> value is not valid for this method. + The <xref:System.Globalization.CompareOptions.NumericOrdering?displayProperty=nameWithType> and <xref:System.Globalization.CompareOptions.StringSort?displayProperty=nameWithType> values are not valid for this method. If `options` does not include the <xref:System.Globalization.CompareOptions.Ordinal> value, this overload performs a culture-sensitive search. If the character is a Unicode value representing a precomposed character, such as the ligature "Æ" (U+00C6), it might be considered equivalent to any occurrence of its components in the correct sequence, such as "AE" (U+0041, U+0045), depending on the culture. If `options` includes the <xref:System.Globalization.CompareOptions.Ordinal> value, this overload performs an ordinal (culture-insensitive) search. A character is considered equivalent to another character only if the Unicode values are the same. Overloads of <xref:System.String.LastIndexOf%2A?displayProperty=nameWithType> that search for a character perform an ordinal search, whereas those that search for a string perform a culture-sensitive search. @@ -4749,7 +4749,7 @@ This method has greater overhead than other <xref:System.Globalization.CompareIn ## Remarks The source string is searched backward starting at `startIndex` and ending at the beginning of the string. - The <xref:System.Globalization.CompareOptions.StringSort?displayProperty=nameWithType> value is not valid for this method. + The <xref:System.Globalization.CompareOptions.NumericOrdering?displayProperty=nameWithType> and <xref:System.Globalization.CompareOptions.StringSort?displayProperty=nameWithType> values are not valid for this method. If `options` does not include the <xref:System.Globalization.CompareOptions.Ordinal> value, this overload performs a culture-sensitive search. A Unicode value representing a precomposed character, such as the ligature "Æ" (U+00C6), might be considered equivalent to any occurrence of the character's components in the correct sequence, such as "AE" (U+0041, U+0045), depending on the culture. If `options` includes the <xref:System.Globalization.CompareOptions.Ordinal> value, this overload performs an ordinal (culture-insensitive) search, where the Unicode values are compared. @@ -4966,7 +4966,7 @@ This method has greater overhead than other <xref:System.Globalization.CompareIn ## Remarks The source string is searched backward starting at `startIndex` and ending at `startIndex` - `count` + 1. - The <xref:System.Globalization.CompareOptions.StringSort?displayProperty=nameWithType> value is not valid for this method. + The <xref:System.Globalization.CompareOptions.NumericOrdering?displayProperty=nameWithType> and <xref:System.Globalization.CompareOptions.StringSort?displayProperty=nameWithType> values are not valid for this method. If `options` does not include the <xref:System.Globalization.CompareOptions.Ordinal> value, this overload performs a culture-sensitive search. If the character is a Unicode value representing a precomposed character, such as the ligature "Æ" (U+00C6), it might be considered equivalent to any occurrence of its components in the correct sequence, such as "AE" (U+0041, U+0045), depending on the culture. If `options` includes the <xref:System.Globalization.CompareOptions.Ordinal> value, this overload performs an ordinal (culture-insensitive) search. A character is considered equivalent to another character only if the Unicode values are the same. Overloads of <xref:System.String.LastIndexOf%2A?displayProperty=nameWithType> that search for a character perform an ordinal search, whereas those that search for a string perform a culture-sensitive search. @@ -5079,7 +5079,7 @@ This method has greater overhead than other <xref:System.Globalization.CompareIn ## Remarks The source string is searched backward starting at `startIndex` and ending at `startIndex` - `count` + 1. - The <xref:System.Globalization.CompareOptions.StringSort?displayProperty=nameWithType> value is not valid for this method. + The <xref:System.Globalization.CompareOptions.NumericOrdering?displayProperty=nameWithType> and <xref:System.Globalization.CompareOptions.StringSort?displayProperty=nameWithType> values are not valid for this method. If `options` does not include the <xref:System.Globalization.CompareOptions.Ordinal> value, this overload performs a culture-sensitive search. A Unicode value representing a precomposed character, such as the ligature "Æ" (U+00C6), might be considered equivalent to any occurrence of the character's components in the correct sequence, such as "AE" (U+0041, U+0045), depending on the culture. If `options` includes the <xref:System.Globalization.CompareOptions.Ordinal> value, this overload performs an ordinal (culture-insensitive) search, where the Unicode values are compared. diff --git a/xml/System.Globalization/CompareOptions.xml b/xml/System.Globalization/CompareOptions.xml index 5bd6fa0ea24..8451eaf2899 100644 --- a/xml/System.Globalization/CompareOptions.xml +++ b/xml/System.Globalization/CompareOptions.xml @@ -428,7 +428,7 @@ </ReturnValue> <MemberValue>268435456</MemberValue> <Docs> - <summary>String comparison must ignore case, then perform an ordinal comparison. This technique is equivalent to converting the string to uppercase using the invariant culture and then performing an ordinal comparison on the result.</summary> + <summary>String comparison must ignore case, then perform an ordinal comparison. This technique is equivalent to converting the string to uppercase using the invariant culture and then performing an ordinal comparison on the result. This value cannot be combined with other <see cref="T:System.Globalization.CompareOptions" /> values and must be used alone.</summary> </Docs> </Member> <Member MemberName="StringSort"> @@ -475,5 +475,25 @@ <summary>Indicates that the string comparison must use the string sort algorithm. In a string sort, the hyphen and the apostrophe, as well as other nonalphanumeric symbols, come before alphanumeric characters.</summary> </Docs> </Member> + <Member MemberName="NumericOrdering"> + <MemberSignature Language="C#" Value="NumericOrdering" /> + <MemberSignature Language="ILAsm" Value=".field public static literal valuetype System.Globalization.CompareOptions NumericOrdering = int32(32)" /> + <MemberSignature Language="DocId" Value="F:System.Globalization.CompareOptions.NumericOrdering" /> + <MemberSignature Language="VB.NET" Value="NumericOrdering" /> + <MemberSignature Language="F#" Value="NumericOrdering = 32" Usage="System.Globalization.CompareOptions.NumericOrdering" /> + <MemberSignature Language="C++ CLI" Value="NumericOrdering" /> + <MemberType>Field</MemberType> + <AssemblyInfo> + <AssemblyName>System.Runtime</AssemblyName> + <AssemblyVersion>10.0.0.0</AssemblyVersion> + </AssemblyInfo> + <ReturnValue> + <ReturnType>System.Globalization.CompareOptions</ReturnType> + </ReturnValue> + <MemberValue>32</MemberValue> + <Docs> + <summary>Indicates that the string comparison must sort sequences of digits (Unicode general category "Nd") based on their numeric value. For example, "2" comes before "10". Non-digit characters such as decimal points, minus or plus signs, etc. are not considered as part of the sequence and will terminate it. This flag is not valid for indexing (such as <see cref="CompareInfo.IndexOf(string, string, CompareOptions)"/>, <see cref="CompareInfo.IsPrefix(string, string, CompareOptions)"/>, etc.).</summary> + </Docs> + </Member> </Members> </Type> diff --git a/xml/System.Globalization/GlobalizationExtensions.xml b/xml/System.Globalization/GlobalizationExtensions.xml index e8c18af4b6d..bf30acbb498 100644 --- a/xml/System.Globalization/GlobalizationExtensions.xml +++ b/xml/System.Globalization/GlobalizationExtensions.xml @@ -113,7 +113,7 @@ </Parameters> <Docs> <param name="compareInfo">An object that supports culture-sensitive string comparison.</param> - <param name="options">A value that defines how strings should be compared. <paramref name="options" /> is either the enumeration value <see cref="F:System.Globalization.CompareOptions.Ordinal" />, the enumeration value <see cref="F:System.Globalization.CompareOptions.OrdinalIgnoreCase" />, or a bitwise combination of one or more of the following values: <see cref="F:System.Globalization.CompareOptions.IgnoreCase" />, <see cref="F:System.Globalization.CompareOptions.IgnoreSymbols" />, <see cref="F:System.Globalization.CompareOptions.IgnoreNonSpace" />, <see cref="F:System.Globalization.CompareOptions.IgnoreWidth" />, <see cref="F:System.Globalization.CompareOptions.IgnoreKanaType" />, and <see cref="F:System.Globalization.CompareOptions.StringSort" />.</param> + <param name="options">A value that defines how strings should be compared. <paramref name="options" /> is either the enumeration value <see cref="F:System.Globalization.CompareOptions.Ordinal" />, the enumeration value <see cref="F:System.Globalization.CompareOptions.OrdinalIgnoreCase" />, or a bitwise combination of one or more of the following values: <see cref="F:System.Globalization.CompareOptions.IgnoreCase" />, <see cref="F:System.Globalization.CompareOptions.IgnoreSymbols" />, <see cref="F:System.Globalization.CompareOptions.IgnoreNonSpace" />, <see cref="F:System.Globalization.CompareOptions.IgnoreWidth" />, <see cref="F:System.Globalization.CompareOptions.IgnoreKanaType" />, <see cref="F:System.Globalization.CompareOptions.NumericOrdering" />, and <see cref="F:System.Globalization.CompareOptions.StringSort" />.</param> <summary>Returns a <see cref="T:System.StringComparer" /> object based on the culture-sensitive string comparison rules of a specified <see cref="T:System.Globalization.CompareInfo" /> object.</summary> <returns>An object that can be used to perform string comparisons.</returns> <remarks>To be added.</remarks>