Skip to content

Commit 1954f94

Browse files
author
Insomniak47
authored
Markdown code block in TransactionEventArgs (#4511)
Previously used a number of single line code blocks with newline breaks between them
1 parent 5abc1ad commit 1954f94

File tree

1 file changed

+11
-17
lines changed

1 file changed

+11
-17
lines changed

xml/System.Transactions/TransactionEventArgs.xml

Lines changed: 11 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -38,24 +38,18 @@
3838
## Examples
3939
The following example demonstrates how this type is used.
4040
41-
`//Transaction completed event handler`
42-
43-
`static void Current_TransactionCompleted(object sender, TransactionEventArgs e)`
44-
45-
`{`
46-
47-
`Console.WriteLine("A transaction has completed:");`
48-
49-
`Console.WriteLine("ID:{0}", e.Transaction.TransactionInformation.LocalIdentifier);`
50-
51-
`Console.WriteLine("Distributed ID: {0}", e.Transaction.TransactionInformation.DistributedIdentifier);`
52-
53-
`Console.WriteLine("Status: {0}", e.Transaction.TransactionInformation.Status);`
54-
55-
`Console.WriteLine("IsolationLevel: {0}", e.Transaction.IsolationLevel);`
56-
57-
`}`
41+
```cs
42+
//Transaction completed event handler
43+
static void Current_TransactionCompleted(object sender, TransactionEventArgs e)
44+
{
5845
46+
Console.WriteLine("A transaction has completed:");
47+
Console.WriteLine("ID:{0}", e.Transaction.TransactionInformation.LocalIdentifier);
48+
Console.WriteLine("Distributed ID: {0}", e.Transaction.TransactionInformation.DistributedIdentifier);
49+
Console.WriteLine("Status: {0}", e.Transaction.TransactionInformation.Status);
50+
Console.WriteLine("IsolationLevel: {0}", e.Transaction.IsolationLevel);
51+
}
52+
```
5953
]]></format>
6054
</remarks>
6155
</Docs>

0 commit comments

Comments
 (0)