Skip to content

Commit ad75271

Browse files
authored
add language slugs (#11224)
1 parent 9a06c05 commit ad75271

File tree

13 files changed

+48
-58
lines changed

13 files changed

+48
-58
lines changed

xml/System.Text.RegularExpressions/MatchCollection.xml

+1-1
Original file line numberDiff line numberDiff line change
@@ -555,7 +555,7 @@ A collection that is read-only does not allow the addition or removal of element
555555
556556
The example produces the following output:
557557
558-
```
558+
```txt
559559
Half
560560
house
561561
huge

xml/System.Text.RegularExpressions/Regex.xml

+7-7
Original file line numberDiff line numberDiff line change
@@ -2986,7 +2986,7 @@ Allows an <see cref="T:System.Object" /> to attempt to free resources and perfor
29862986

29872987
The regular expression pattern is:
29882988

2989-
```
2989+
```txt
29902990
^[a-zA-Z0-9]\d{2}[a-zA-Z0-9](-\d{3}){2}[A-Za-z0-9]$
29912991
```
29922992

@@ -3169,7 +3169,7 @@ For more details about `startat`, see the Remarks section of <xref:System.Text.R
31693169

31703170
The regular expression pattern is:
31713171

3172-
```
3172+
```txt
31733173
[a-zA-Z0-9]\d{2}[a-zA-Z0-9](-\d{3}){2}[A-Za-z0-9]$
31743174
```
31753175

@@ -3274,7 +3274,7 @@ For more details about `startat`, see the Remarks section of <xref:System.Text.R
32743274

32753275
The regular expression pattern is:
32763276

3277-
```
3277+
```txt
32783278
^[a-zA-Z0-9]\d{2}[a-zA-Z0-9](-\d{3}){2}[A-Za-z0-9]$
32793279
```
32803280

@@ -3440,7 +3440,7 @@ For more details about `startat`, see the Remarks section of <xref:System.Text.R
34403440

34413441
The regular expression pattern is:
34423442

3443-
```
3443+
```txt
34443444
^[A-Z0-9]\d{2}[A-Z0-9](-\d{3}){2}[A-Z0-9]$
34453445
```
34463446

@@ -3460,7 +3460,7 @@ For more details about `startat`, see the Remarks section of <xref:System.Text.R
34603460

34613461
Calling the <xref:System.Text.RegularExpressions.Regex.IsMatch(System.String,System.String,System.Text.RegularExpressions.RegexOptions)> method with the `options` parameter set to <xref:System.Text.RegularExpressions.RegexOptions.IgnoreCase?displayProperty=nameWithType> is equivalent to defining the following regular expression:
34623462

3463-
```
3463+
```txt
34643464
[a-zA-Z0-9]\d{2}[a-zA-Z0-9](-\d{3}){2}[A-Za-z0-9]
34653465
```
34663466

@@ -3619,7 +3619,7 @@ For more details about `startat`, see the Remarks section of <xref:System.Text.R
36193619

36203620
The regular expression pattern is:
36213621

3622-
```
3622+
```txt
36233623
^[A-Z0-9]\d{2}[A-Z0-9](-\d{3}){2}[A-Z0-9]$
36243624
```
36253625

@@ -3639,7 +3639,7 @@ For more details about `startat`, see the Remarks section of <xref:System.Text.R
36393639

36403640
Calling the <xref:System.Text.RegularExpressions.Regex.IsMatch(System.String,System.String,System.Text.RegularExpressions.RegexOptions,System.TimeSpan)> method with the `options` parameter set to <xref:System.Text.RegularExpressions.RegexOptions.IgnoreCase?displayProperty=nameWithType> is equivalent to defining the following regular expression:
36413641

3642-
```
3642+
```txt
36433643
[a-zA-Z0-9]\d{2}[a-zA-Z0-9](-\d{3}){2}[A-Za-z0-9]
36443644
```
36453645

xml/System.Text/Encoding.xml

-4
Original file line numberDiff line numberDiff line change
@@ -4354,14 +4354,12 @@ In .NET 5 and later versions, the code page name `utf-7` is not supported.
43544354
The example uses the following text, which should be saved to a UTF-8 encoded file named Utf8Example.txt.
43554355
43564356
```txt
4357-
43584357
This is a UTF-8-encoded file that contains primarily Latin text, although it
43594358
does list the first twelve letters of the Russian (Cyrillic) alphabet:
43604359
43614360
А б в г д е ё ж з и й к
43624361
43634362
The goal is to save this file, then open and decode it as a binary stream.
4364-
43654363
```
43664364
43674365
]]></format>
@@ -4597,14 +4595,12 @@ The goal is to save this file, then open and decode it as a binary stream.
45974595
The example uses the following text, which should be saved to a UTF-8 encoded file named Utf8Example.txt.
45984596
45994597
```txt
4600-
46014598
This is a UTF-8-encoded file that contains primarily Latin text, although it
46024599
does list the first twelve letters of the Russian (Cyrillic) alphabet:
46034600
46044601
А б в г д е ё ж з и й к
46054602
46064603
The goal is to save this file, then open and decode it as a binary stream.
4607-
46084604
```
46094605
46104606
]]></format>

xml/System.Transactions/TransactionEventArgs.xml

+7-7
Original file line numberDiff line numberDiff line change
@@ -49,16 +49,16 @@
4949
<Docs>
5050
<summary>Provides data for the following transaction events: <see cref="E:System.Transactions.TransactionManager.DistributedTransactionStarted" />, <see cref="E:System.Transactions.Transaction.TransactionCompleted" />.</summary>
5151
<remarks>
52-
<format type="text/markdown"><![CDATA[
53-
54-
## Examples
55-
The following example demonstrates how this type is used.
56-
57-
```cs
52+
<format type="text/markdown"><![CDATA[
53+
54+
## Examples
55+
The following example demonstrates how this type is used.
56+
57+
```csharp
5858
//Transaction completed event handler
5959
static void Current_TransactionCompleted(object sender, TransactionEventArgs e)
6060
{
61-
61+
6262
Console.WriteLine("A transaction has completed:");
6363
Console.WriteLine("ID:{0}", e.Transaction.TransactionInformation.LocalIdentifier);
6464
Console.WriteLine("Distributed ID: {0}", e.Transaction.TransactionInformation.DistributedIdentifier);

xml/System/Byte.xml

+1-1
Original file line numberDiff line numberDiff line change
@@ -6730,7 +6730,7 @@ This member is an explicit interface member implementation. It can be used only
67306730

67316731
The `s` parameter should be the string representation of a number in the following form:
67326732

6733-
```
6733+
```txt
67346734
[ws][sign]digits[ws]
67356735
```
67366736

xml/System/DateTime.xml

+2-2
Original file line numberDiff line numberDiff line change
@@ -3591,7 +3591,7 @@ The value parameter is rounded to the nearest integer.
35913591

35923592
The example displays the following output:
35933593

3594-
```
3594+
```txt
35953595
7/28/2009
35963596
7/28/09
35973597
07/28/09
@@ -3882,7 +3882,7 @@ July, 2009
38823882

38833883
The example displays the following output:
38843884

3885-
```
3885+
```txt
38863886
28/07/2009
38873887
28/07/09
38883888
28.07.09

xml/System/Environment.xml

+2-2
Original file line numberDiff line numberDiff line change
@@ -478,7 +478,7 @@
478478
479479
The example can then be invoked from a batch file such as the following, which makes its error codes accessible by using the `ERRORLEVEL` command.
480480
481-
```
481+
```bat
482482
@echo off
483483
Double.exe %1
484484
if errorlevel 1639 goto NoArg
@@ -502,7 +502,7 @@ goto :EOF
502502
503503
The following shows some sample output produced by invoking the batch file.
504504
505-
```
505+
```txt
506506
>getdouble 123
507507
Result: 246
508508
Completed Successfully

xml/System/Math.xml

+2-2
Original file line numberDiff line numberDiff line change
@@ -3883,13 +3883,13 @@ Dim i2 As Integer = CInt(Math.Floor(d2)) ' Result: 7968
38833883

38843884
The <xref:System.Math.IEEERemainder%2A> method is not the same as the [remainder operator](/dotnet/csharp/language-reference/operators/remainder-operator). Although both return the remainder after division, the formulas they use are different. The formula for the <xref:System.Math.IEEERemainder%2A> method is:
38853885

3886-
```
3886+
```txt
38873887
IEEERemainder = dividend - (divisor * Math.Round(dividend / divisor))
38883888
```
38893889

38903890
In contrast, the formula for the remainder operator is:
38913891

3892-
```
3892+
```txt
38933893
Remainder = (Math.Abs(dividend) - (Math.Abs(divisor) *
38943894
(Math.Floor(Math.Abs(dividend) / Math.Abs(divisor))))) *
38953895
Math.Sign(dividend)

xml/System/MathF.xml

+2-2
Original file line numberDiff line numberDiff line change
@@ -1177,13 +1177,13 @@ The value of this constant is 2.71828175.
11771177
11781178
The <xref:System.MathF.IEEERemainder%2A> method is not the same as the [remainder operator](/dotnet/csharp/language-reference/operators/remainder-operator). Although both return the remainder after division, the formulas they use are different. The formula for the <xref:System.MathF.IEEERemainder%2A> method is:
11791179
1180-
```
1180+
```txt
11811181
IEEERemainder = dividend - (divisor * MathF.Round(dividend / divisor))
11821182
```
11831183
11841184
In contrast, the formula for the remainder operator is:
11851185
1186-
```
1186+
```txt
11871187
Remainder = (MathF.Abs(dividend) - (MathF.Abs(divisor) *
11881188
(MathF.Floor(MathF.Abs(dividend) / MathF.Abs(divisor))))) *
11891189
MathF.Sign(dividend)

xml/System/ObjectDisposedException.xml

+1-1
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,7 @@
9494
9595
This code produces the following output:
9696
97-
```
97+
```txt
9898
Caught:
9999
Cannot access a closed Stream.
100100
```

xml/System/String.xml

+2-2
Original file line numberDiff line numberDiff line change
@@ -6680,7 +6680,7 @@ In .NET Framework desktop apps, you can use the [\<UseRandomizedStringHashAlgori
66806680

66816681
When you run the example without supplying a configuration file, it displays output similar to the following. Note that the hash codes for the string are identical in the two application domains.
66826682

6683-
```
6683+
```txt
66846684
String 'This is a string.' in domain 'PerDomain.exe': 941BCEAC
66856685
String 'This is a string.' in domain 'NewDomain': 941BCEAC
66866686
```
@@ -6698,7 +6698,7 @@ However, if you add the following configuration file to the example's directory
66986698

66996699
When the configuration file is present, the example displays the following output:
67006700

6701-
```
6701+
```txt
67026702
String 'This is a string.' in domain 'PerDomain.exe': 5435776D
67036703
String 'This is a string.' in domain 'NewDomain': 75CC8236
67046704
```

xml/System/TimeZoneInfo.xml

+7-13
Original file line numberDiff line numberDiff line change
@@ -1172,14 +1172,12 @@
11721172

11731173
Typically, the time zone's standard time name and its identifier are the same. However, the length of the time zone's identifier should not exceed 32 characters. The string passed to the `displayName` parameter follows a fairly standard format. The first portion of the display name is the time zone's base offset from Coordinated Universal Time, which is indicated by the acronym GMT (for Greenwich Mean Time), enclosed in parentheses. This is followed by a string that identifies the time zone itself, or one or more of the cities, regions, or countries in the time zone, or both. For example:
11741174

1175-
```
1175+
```txt
11761176
(GMT+02:00) Athens, Beirut, Istanbul, Minsk
11771177
(GMT-02:00) Mid-Atlantic
11781178
(GMT-07:00) Mountain Time (US & Canada)
11791179
```
11801180

1181-
1182-
11831181
## Examples
11841182
The following example creates a custom time zone for the Mawson and Holme Bay regions of Antarctica. It then displays the result of converting the local time to the time in the new time zone.
11851183

@@ -1293,7 +1291,7 @@
12931291

12941292
Typically, the time zone's standard time name and its identifier are the same. However, the length of the time zone's identifier should not exceed 32 characters. The string passed to the `displayName` parameter follows a fairly standard format. The first portion of the display name is the time zone's base offset from Coordinated Universal Time, which is indicated by the acronym GMT (for Greenwich Mean Time), enclosed in parentheses. This is followed by a string that identifies the time zone itself, or one or more of the cities, regions, or countries in the time zone, or both. For example:
12951293

1296-
```
1294+
```txt
12971295
(GMT+02:00) Athens, Beirut, Istanbul, Minsk
12981296
(GMT-02:00) Mid-Atlantic
12991297
(GMT-07:00) Mountain Time (US & Canada)
@@ -1445,24 +1443,22 @@
14451443

14461444
Typically, the time zone's standard time name and its identifier are the same. However, the length of the time zone's identifier should not exceed 32 characters. The string passed to the `displayName` parameter follows a fairly standard format. The first portion of the display name is the time zone's base offset from Coordinated Universal Time, which is indicated by the acronym GMT (for Greenwich Mean Time), enclosed in parentheses. This is followed by a string that identifies the time zone itself, or one or more of the cities, regions, or countries in the time zone, or both. For example:
14471445

1448-
```
1446+
```txt
14491447
(GMT+02:00) Athens, Beirut, Istanbul, Minsk
14501448
(GMT-02:00) Mid-Atlantic
14511449
(GMT-07:00) Mountain Time (US & Canada)
14521450
```
14531451

14541452
A time zone's adjustment rules are defined by doing the following:
14551453

1456-
1. Calling either the <xref:System.TimeZoneInfo.TransitionTime.CreateFloatingDateRule%2A> or the <xref:System.TimeZoneInfo.TransitionTime.CreateFixedDateRule%2A> method to define the starting and ending transition rules for each adjustment rule.
1454+
1. Calling either the <xref:System.TimeZoneInfo.TransitionTime.CreateFloatingDateRule%2A> or the <xref:System.TimeZoneInfo.TransitionTime.CreateFixedDateRule%2A> method to define the starting and ending transition rules for each adjustment rule.
14571455

1458-
2. Calling the <xref:System.TimeZoneInfo.AdjustmentRule.CreateAdjustmentRule%2A> method for each adjustment rule.
1456+
2. Calling the <xref:System.TimeZoneInfo.AdjustmentRule.CreateAdjustmentRule%2A> method for each adjustment rule.
14591457

1460-
3. Assigning the adjustment rules to an array that can be passed as the `adjustmentRules` parameter.
1458+
3. Assigning the adjustment rules to an array that can be passed as the `adjustmentRules` parameter.
14611459

14621460
If `disableDaylightSavingTime` parameter is `false`, the operation of this method is identical to the <xref:System.TimeZoneInfo.CreateCustomTimeZone%2A?displayProperty=nameWithType> overload. If `disableDaylightSavingTime` is `true`, the returned object includes no adjustment rules and a <xref:System.TimeZoneInfo.DaylightName%2A> property whose value is an empty string.
14631461

1464-
1465-
14661462
## Examples
14671463
The following example creates a custom time zone for the Palmer station and Anvers Island in Antarctica. It sets the `disableDaylightSavingTime` parameter in the call to the <xref:System.TimeZoneInfo.CreateCustomTimeZone%2A?displayProperty=nameWithType> method to `true`. It then displays the new time zone's daylight saving time name, if one is present, and the number of adjustment rules to confirm that the new time zone has no daylight saving time information.
14681464

@@ -1621,15 +1617,13 @@
16211617

16221618
Time zone display names for Windows system time zones follow a fairly standard format. The first portion of the display name is the time zone's base offset from Coordinated Universal Time, which is indicated by the acronym GMT (for Greenwich Mean Time), enclosed in parentheses. For Coordinated Universal Time, the GMT acronym with no offset is enclosed in parentheses. This is followed by a string that identifies the time zone or one or more of the cities, regions, or countries in the time zone. For example:
16231619

1624-
```
1620+
```txt
16251621
(GMT) Greenwich Mean Time : Dublin, Edinburgh, Lisbon, London
16261622
(GMT+02:00) Athens, Beirut, Istanbul, Minsk
16271623
(GMT-02:00) Mid-Atlantic
16281624
(GMT-07:00) Mountain Time (US & Canada)
16291625
```
16301626

1631-
1632-
16331627
## Examples
16341628
The following example retrieves a <xref:System.TimeZoneInfo> object that represents the local time zone and outputs its display name, standard time name, and daylight saving time name. The output is displayed for a system in the U.S. Pacific Standard Time zone.
16351629

0 commit comments

Comments
 (0)