Skip to content

Commit 91e1202

Browse files
ChrisMaddockmairaw
authored andcommitted
Add lang identifiers (dotnet#169)
1 parent faf9a05 commit 91e1202

31 files changed

+77
-77
lines changed

xml/System.Diagnostics/BooleanSwitch.xml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@
4040
4141
To configure a <xref:System.Diagnostics.BooleanSwitch>, edit the configuration file that corresponds to the name of your application. Within this file, you can add or remove a switch, set a switch's value, or clear all the switches previously set by the application. The configuration file should be formatted like the following example.
4242
43-
```
43+
```xml
4444
<configuration>
4545
<system.diagnostics>
4646
<switches>
@@ -137,7 +137,7 @@
137137
138138
To set the level of your <xref:System.Diagnostics.BooleanSwitch>, edit the configuration file corresponding to the name of your application. Within this file, you can add a switch and set its value, remove a switch, or clear all switches previously set by the application. The configuration file should be formatted like the following example:
139139
140-
```
140+
```xml
141141
<configuration>
142142
<system.diagnostics>
143143
<switches>

xml/System.Diagnostics/ConsoleTraceListener.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@
4747
4848
The following example adds a <xref:System.Diagnostics.ConsoleTraceListener> object named `configConsoleListener` to the <xref:System.Diagnostics.Trace.Listeners%2A> collection.
4949
50-
```
50+
```xml
5151
<configuration>
5252
<system.diagnostics>
5353
<trace autoflush="false" indentsize="4">

xml/System.Diagnostics/Debug.xml

Lines changed: 23 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@
4545
4646
To set the <xref:System.Diagnostics.Debug.AutoFlush%2A> and <xref:System.Diagnostics.Debug.IndentSize%2A> for <xref:System.Diagnostics.Debug>, you can edit the configuration file corresponding to the name of your application. The configuration file should be formatted as shown in the following example.
4747
48-
```
48+
```xml
4949
<configuration>
5050
<system.diagnostics>
5151
<trace autoflush="true" indentsize="7" />
@@ -153,7 +153,7 @@
153153
154154
You can change the behavior of the <xref:System.Diagnostics.DefaultTraceListener> in the configuration file that corresponds to the name of your application. In this file, you can enable and disable the assert message box or set the <xref:System.Diagnostics.DefaultTraceListener.LogFileName%2A?displayProperty=nameWithType> property. The configuration file should be formatted as follows:
155155
156-
```
156+
```xml
157157
<configuration>
158158
<system.diagnostics>
159159
<assert assertuienabled="true" logfilename="c:\\myFile.log" />
@@ -236,7 +236,7 @@
236236
237237
You can change the behavior of the <xref:System.Diagnostics.DefaultTraceListener> in the configuration file that corresponds to the name of your application. In this file, you can enable and disable the assert message box or set the <xref:System.Diagnostics.DefaultTraceListener.LogFileName%2A?displayProperty=nameWithType> property. The configuration file should be formatted as follows:
238238
239-
```
239+
```xml
240240
<configuration>
241241
<system.diagnostics>
242242
<assert assertuienabled="true" logfilename="c:\\myFile.log" />
@@ -320,7 +320,7 @@
320320
321321
You can change the behavior of the <xref:System.Diagnostics.DefaultTraceListener> in the configuration file that corresponds to the name of your application. In this file, you can enable and disable the assert message box or set the <xref:System.Diagnostics.DefaultTraceListener.LogFileName%2A?displayProperty=nameWithType> property. The configuration file should be formatted as follows:
322322
323-
```
323+
```xml
324324
<configuration>
325325
<system.diagnostics>
326326
<assert assertuienabled="true" logfilename="c:\\myFile.log" />
@@ -414,7 +414,7 @@
414414
415415
You can change the behavior of the <xref:System.Diagnostics.DefaultTraceListener> in the configuration file that corresponds to the name of your application. In this file, you can enable and disable the assert message box or set the <xref:System.Diagnostics.DefaultTraceListener.LogFileName%2A?displayProperty=nameWithType> property. The configuration file should be formatted as follows:
416416
417-
```
417+
```xml
418418
<configuration>
419419
<system.diagnostics>
420420
<assert assertuienabled="true" logfilename="c:\\myFile.log" />
@@ -464,7 +464,7 @@
464464
465465
To set the <xref:System.Diagnostics.Debug.AutoFlush%2A> and <xref:System.Diagnostics.Debug.IndentSize%2A> for <xref:System.Diagnostics.Debug>, you can also edit the configuration file corresponding to the name of your application. The configuration file should be formatted as shown in the following example.
466466
467-
```
467+
```xml
468468
<configuration>
469469
<system.diagnostics>
470470
<trace autoflush="true" indentsize="7" />
@@ -927,7 +927,7 @@ End of list of errors
927927
928928
To set the <xref:System.Diagnostics.Debug.AutoFlush%2A> and <xref:System.Diagnostics.Debug.IndentSize%2A> for <xref:System.Diagnostics.Debug>, you can also edit the configuration file corresponding to the name of your application. The configuration file should be formatted as shown in the following example.
929929
930-
```
930+
```xml
931931
<configuration>
932932
<system.diagnostics>
933933
<trace autoflush="true" indentsize="7" />
@@ -1543,14 +1543,14 @@ End of list of errors
15431543

15441544
First example:
15451545

1546-
```
1546+
```csharp
15471547
if(mySwitch.TraceError)
15481548
Debug.Write("aNumber = " + aNumber + " out of range");
15491549
```
15501550

15511551
Second example:
15521552

1553-
```
1553+
```csharp
15541554
Debug.WriteIf(mySwitch.TraceError, "aNumber = " + aNumber + " out of range");
15551555
```</para>
15561556
</block>
@@ -1630,14 +1630,14 @@ Debug.WriteIf(mySwitch.TraceError, "aNumber = " + aNumber + " out of range");
16301630

16311631
First example:
16321632

1633-
```
1633+
```csharp
16341634
if(mySwitch.TraceError)
16351635
Debug.Write("aNumber = " + aNumber + " out of range");
16361636
```
16371637

16381638
Second example:
16391639

1640-
```
1640+
```csharp
16411641
Debug.WriteIf(mySwitch.TraceError, "aNumber = " + aNumber + " out of range");
16421642
```</para>
16431643
</block>
@@ -1721,14 +1721,14 @@ Debug.WriteIf(mySwitch.TraceError, "aNumber = " + aNumber + " out of range");
17211721

17221722
First example:
17231723

1724-
```
1724+
```csharp
17251725
if(mySwitch.TraceError)
17261726
Debug.Write("aNumber = " + aNumber + " out of range");
17271727
```
17281728

17291729
Second example:
17301730

1731-
```
1731+
```csharp
17321732
Debug.WriteIf(mySwitch.TraceError, "aNumber = " + aNumber + " out of range");
17331733
```</para>
17341734
</block>
@@ -1812,14 +1812,14 @@ Debug.WriteIf(mySwitch.TraceError, "aNumber = " + aNumber + " out of range");
18121812

18131813
First example:
18141814

1815-
```
1815+
```csharp
18161816
if(mySwitch.TraceError)
18171817
Debug.Write("aNumber = " + aNumber + " out of range");
18181818
```
18191819

18201820
Second example:
18211821

1822-
```
1822+
```csharp
18231823
Debug.WriteIf(mySwitch.TraceError, "aNumber = " + aNumber + " out of range");
18241824
```</para>
18251825
</block>
@@ -2267,14 +2267,14 @@ Debug.WriteIf(mySwitch.TraceError, "aNumber = " + aNumber + " out of range");
22672267

22682268
First example:
22692269

2270-
```
2270+
```csharp
22712271
if(mySwitch.TraceError)
22722272
Debug.WriteLine("aNumber = " + aNumber + " out of range");
22732273
```
22742274

22752275
Second example:
22762276

2277-
```
2277+
```csharp
22782278
Debug.WriteLineIf(mySwitch.TraceError, "aNumber = " + aNumber + " out of range");
22792279
```</para>
22802280
</block>
@@ -2355,14 +2355,14 @@ Debug.WriteLineIf(mySwitch.TraceError, "aNumber = " + aNumber + " out of range")
23552355

23562356
First example:
23572357

2358-
```
2358+
```csharp
23592359
if(mySwitch.TraceError)
23602360
Debug.WriteLine("aNumber = " + aNumber + " out of range");
23612361
```
23622362

23632363
Second example:
23642364

2365-
```
2365+
```csharp
23662366
Debug.WriteLineIf(mySwitch.TraceError, "aNumber = " + aNumber + " out of range");
23672367
```</para>
23682368
</block>
@@ -2446,14 +2446,14 @@ Debug.WriteLineIf(mySwitch.TraceError, "aNumber = " + aNumber + " out of range")
24462446

24472447
First example:
24482448

2449-
```
2449+
```csharp
24502450
if(mySwitch.TraceError)
24512451
Debug.WriteLine("aNumber = " + aNumber + " out of range");
24522452
```
24532453

24542454
Second example:
24552455

2456-
```
2456+
```csharp
24572457
Debug.WriteLineIf(mySwitch.TraceError, "aNumber = " + aNumber + " out of range");
24582458
```</para>
24592459
</block>
@@ -2538,14 +2538,14 @@ Debug.WriteLineIf(mySwitch.TraceError, "aNumber = " + aNumber + " out of range")
25382538

25392539
First example:
25402540

2541-
```
2541+
```csharp
25422542
if(mySwitch.TraceError)
25432543
Debug.WriteLine("aNumber = " + aNumber + " out of range");
25442544
```
25452545

25462546
Second example:
25472547

2548-
```
2548+
```csharp
25492549
Debug.WriteLineIf(mySwitch.TraceError, "aNumber = " + aNumber + " out of range");
25502550
```</para>
25512551
</block>

xml/System.Diagnostics/DebuggerDisplayAttribute.xml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@
4040
## Remarks
4141
The <xref:System.Diagnostics.DebuggerDisplayAttribute.%23ctor%2A> constructor has a single argument: a string to be displayed in the value column for instances of the type. This string can contain braces ({ and }). The text within a pair of braces is evaluated as the name of a field, property, or method. For example, the following C# code causes "Count = 4" to be displayed when the plus sign (+) is selected to expand the debugger display for an instance of `MyHashtable`.
4242
43-
```
43+
```csharp
4444
[DebuggerDisplay("Count = {count}")]
4545
class MyHashtable
4646
{
@@ -98,7 +98,7 @@ class MyHashtable
9898
## Remarks
9999
The `value` parameter can contain braces ({ and }). The text within a pair of braces is evaluated as the name of a field, property, or method. For example, the following C# code causes "Count = 4" to be displayed when the plus sign (+) is selected to expand the debugger display for an instance of `MyTable`.
100100
101-
```
101+
```csharp
102102
[DebuggerDisplay("Count = {count}")]
103103
class MyTable
104104
{

xml/System.Diagnostics/DebuggerNonUserCodeAttribute.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@
5050
## Examples
5151
The following code example shows the use of this attribute in a Visual Basic project.
5252
53-
```
53+
```vb
5454
' Form overrides Dispose to clean up the component list.
5555
<System.Diagnostics.DebuggerNonUserCode()> _
5656
Protected Overloads Overrides Sub Dispose(ByVal disposing As Boolean)

xml/System.Diagnostics/DebuggerStepThroughAttribute.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@
4848
4949
The following code shows how the Visual Basic compiler uses the attribute.
5050
51-
```
51+
```vb
5252
<System.Diagnostics.DebuggerStepThrough()> _
5353
    Private Sub InitializeComponent()
5454
        components = New System.ComponentModel.Container()

xml/System.Diagnostics/DefaultTraceListener.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@
4646
4747
To add a trace listener, edit the configuration file that corresponds to the name of your application. Within this file, you can add a listener, set its type and set its parameters, remove a listener, or clear all the listeners previously set by the application. The configuration file should be formatted similar to the following example:
4848
49-
```
49+
```xml
5050
<configuration>
5151
<system.diagnostics>
5252
<trace autoflush="false" indentsize="4">

xml/System.Diagnostics/DelimitedListTraceListener.xml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@
4141
4242
To configure a <xref:System.Diagnostics.DelimitedListTraceListener>, edit the configuration file that corresponds to the name of your application. In this file, you can add a listener, set the properties for a listener, or remove a listener. The configuration file should be formatted as shown in the following example:
4343
44-
```
44+
```xml
4545
<configuration>
4646
<system.diagnostics>
4747
<trace autoflush="false" indentsize="4">
@@ -230,7 +230,7 @@
230230
## Remarks
231231
This constructor initializes the <xref:System.Diagnostics.TraceListener.Name%2A> property to the value of the `name` parameter, or to an empty string ("") if the `name` parameter is `null`. The <xref:System.Diagnostics.TraceListener.Name%2A> property can be used as an index into the `Listeners` collection to programmatically change the properties for the listener. For example, the following code sets the <xref:System.Diagnostics.DelimitedListTraceListener.Delimiter%2A> property for the instance of <xref:System.Diagnostics.DelimitedListTraceListener> that has the name "delimListener":
232232
233-
```
233+
```csharp
234234
((DelimitedListTraceListener)Trace.Listeners["delimListener"]).Delimiter = ":"
235235
```
236236
@@ -276,7 +276,7 @@
276276
## Remarks
277277
This constructor initializes the <xref:System.Diagnostics.TraceListener.Name%2A> property to the value of the `name` parameter, or to an empty string ("") if the `name` parameter is `null`. The <xref:System.Diagnostics.TraceListener.Name%2A> property can be used as an index into the `Listeners` collection to programmatically change the properties for the listener. For example the following code sets the <xref:System.Diagnostics.DelimitedListTraceListener.Delimiter%2A> property for the instance of <xref:System.Diagnostics.DelimitedListTraceListener> that has the name "delimListener":
278278
279-
```
279+
```csharp
280280
((DelimitedListTraceListener)Trace.Listeners["delimListener"]).Delimiter = ":"
281281
```
282282
@@ -326,7 +326,7 @@
326326
327327
The <xref:System.Diagnostics.TraceListener.Name%2A> property is set to the value of the `name` parameter, or to an empty string ("") if the `name` parameter is `null`. The <xref:System.Diagnostics.TraceListener.Name%2A> property can be used as an index into the `Listeners` collection to programmatically change the properties for the listener. For example, the following code sets the <xref:System.Diagnostics.DelimitedListTraceListener.Delimiter%2A> property for the instance of <xref:System.Diagnostics.DelimitedListTraceListener> that has the name "delimListener":
328328
329-
```
329+
```csharp
330330
((DelimitedListTraceListener)Trace.Listeners["delimListener"]).Delimiter = ":"
331331
```
332332
@@ -370,7 +370,7 @@
370370
## Remarks
371371
The default delimiter is ";" (semicolon). The following configuration file example shows the setting of the <xref:System.Diagnostics.DelimitedListTraceListener.Delimiter%2A> property using the `delimiter` attribute in a configuration file:
372372
373-
```
373+
```xml
374374
<configuration>
375375
<system.diagnostics>
376376
<trace autoflush="false" indentsize="4">
@@ -430,7 +430,7 @@
430430
## Remarks
431431
A custom attribute is an attribute that is not inherited from the base class that can be used to set a property for the class. The custom attribute for <xref:System.Diagnostics.DelimitedListTraceListener> is used to set the <xref:System.Diagnostics.DelimitedListTraceListener.Delimiter%2A> property. The following configuration file example shows the use of the `delimiter` attribute to set the <xref:System.Diagnostics.DelimitedListTraceListener.Delimiter%2A> property:
432432
433-
```
433+
```xml
434434
<configuration>
435435
<system.diagnostics>
436436
<trace autoflush="false" indentsize="4">

xml/System.Diagnostics/EventSchemaTraceListener.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@
2828
2929
To configure an <xref:System.Diagnostics.EventSchemaTraceListener> object, modify the configuration file that corresponds to the name of your application. In this file, you can add, remove, or set the properties for a listener. The configuration file should be formatted as follows:
3030
31-
```
31+
```xml
3232
<configuration>
3333
<system.diagnostics>
3434
<sources>

xml/System.Diagnostics/Process.xml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -454,7 +454,7 @@
454454
455455
When you call <xref:System.Diagnostics.Process.CancelErrorRead%2A>, all in-progress read operations for <xref:System.Diagnostics.Process.StandardError%2A> are completed and then the event handler is disabled. All further redirected output to <xref:System.Diagnostics.Process.StandardError%2A> is saved in a buffer. If you re-enable the event handler with a call to <xref:System.Diagnostics.Process.BeginErrorReadLine%2A>, the saved output is sent to the event handler and asynchronous read operations resume. If you want to change the event handler before resuming asynchronous read operations, you must remove the existing event handler before adding the new event handler:
456456
457-
```
457+
```csharp
458458
// At this point the DataReceivedEventHandler(ErrorHandler1)
459459
// has executed a CancelErrorRead.
460460
@@ -536,7 +536,7 @@ process.BeginErrorReadLine();
536536
537537
When you call <xref:System.Diagnostics.Process.CancelOutputRead%2A>, all in-progress read operations for <xref:System.Diagnostics.Process.StandardOutput%2A> are completed and then the event handler is disabled. All further redirected output to <xref:System.Diagnostics.Process.StandardOutput%2A> is saved in a buffer. If you re-enable the event handler with a call to <xref:System.Diagnostics.Process.BeginOutputReadLine%2A>, the saved output is sent to the event handler and asynchronous read operations resume. If you want to change the event handler before resuming asynchronous read operations, you must remove the existing event handler before adding the new event handler:
538538
539-
```
539+
```csharp
540540
// At this point the DataReceivedEventHandler(OutputHandler1)
541541
// has executed a CancelOutputRead.
542542
@@ -3944,7 +3944,7 @@ The following code example creates a process that prints a file. It sets the <xr
39443944
39453945
The following C# code, for example, shows how to read from a redirected stream and wait for the child process to exit.
39463946
3947-
```
3947+
```csharp
39483948
// Start the child process.
39493949
Process p = new Process();
39503950
// Redirect the error stream of the child process.
@@ -3964,7 +3964,7 @@ The following code example creates a process that prints a file. It sets the <xr
39643964
39653965
There is a similar issue when you read all text from both the standard output and standard error streams. The following C# code, for example, performs a read operation on both streams.
39663966
3967-
```
3967+
```csharp
39683968
// Do not perform a synchronous read to the end of both
39693969
// redirected streams.
39703970
// string output = p.StandardOutput.ReadToEnd();
@@ -4127,7 +4127,7 @@ p.WaitForExit();
41274127
41284128
The following C# code, for example, shows how to read from a redirected stream and wait for the child process to exit.
41294129
4130-
```
4130+
```csharp
41314131
Process p = new Process();
41324132
p.StartInfo.UseShellExecute = false;
41334133
p.StartInfo.RedirectStandardOutput = true;
@@ -4143,7 +4143,7 @@ p.WaitForExit();
41434143
41444144
There is a similar issue when you read all text from both the standard output and standard error streams. The following C# code, for example, performs a read operation on both streams.
41454145
4146-
```
4146+
```csharp
41474147
// To avoid deadlocks, use asynchronous read operations on at least one of the streams.
41484148
// Do not perform a synchronous read to the end of both redirected streams.
41494149
p.BeginOutputReadLine();

0 commit comments

Comments
 (0)