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

Lines changed: 1 addition & 1 deletion
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

Lines changed: 7 additions & 7 deletions
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

Lines changed: 0 additions & 4 deletions
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

Lines changed: 7 additions & 7 deletions
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

Lines changed: 1 addition & 1 deletion
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

Lines changed: 2 additions & 2 deletions
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

Lines changed: 2 additions & 2 deletions
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

Lines changed: 2 additions & 2 deletions
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

Lines changed: 2 additions & 2 deletions
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

Lines changed: 1 addition & 1 deletion
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
```

0 commit comments

Comments
 (0)