fix: converted single to triple backticks5 (#36232)

This commit is contained in:
Randell Dawson
2019-06-20 14:14:23 -07:00
committed by Tom
parent 63a0fa745b
commit fce8901c56
75 changed files with 1299 additions and 1139 deletions

View File

@@ -10,10 +10,11 @@ localeTitle: استثناءات
إذا حاولنا قراءة نص ملف غير موجود:
`using System.IO;
string content = File.ReadAllText(@"C:\DoesNotExist.txt");
`
```
using System.IO;
string content = File.ReadAllText(@"C:\DoesNotExist.txt");
```
سيتم رفع `FileNotFoundException` .
@@ -46,20 +47,22 @@ localeTitle: استثناءات
بدلا من
`try
{
conn.Close();
}
catch (Exception ex)
{
//code for handling exceptions.
}
`
```
try
{
conn.Close();
}
catch (Exception ex)
{
//code for handling exceptions.
}
```
جرب هذا
`if (conn.State != ConnectionState.Closed)
{
conn.Close();
}
`
```
if (conn.State != ConnectionState.Closed)
{
conn.Close();
}
```