From 7d097e62ac561fb73eded825db1222f9c7a67c09 Mon Sep 17 00:00:00 2001 From: Randell Dawson Date: Thu, 20 Jun 2019 15:59:44 -0700 Subject: [PATCH] fix: replace cs with csharp for language postfix --- .../csharp/null-coalescing-operator/index.md | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/guide/arabic/csharp/null-coalescing-operator/index.md b/guide/arabic/csharp/null-coalescing-operator/index.md index f8c9ce33bf..f804a49ded 100644 --- a/guide/arabic/csharp/null-coalescing-operator/index.md +++ b/guide/arabic/csharp/null-coalescing-operator/index.md @@ -10,7 +10,7 @@ localeTitle: Null-coalescing Operator بما أن `name` `null` ، فسيتم تعيين `name` `clientName` "John Doe". -```cs +```csharp string name = null; string clientName = name ?? "John Doe"; @@ -18,7 +18,7 @@ string clientName = name ?? "John Doe"; Console.WriteLine(clientName); ``` -```cs +```csharp > John Doe ``` @@ -26,7 +26,7 @@ Console.WriteLine(clientName); نظرًا لأن `name` ليس `null` ، فسيتم تعيين `name` `clientName` ، وهو "Jane Smith". -```cs +```csharp string name = "Jane Smith"; string clientName = name ?? "John Doe"; @@ -34,7 +34,7 @@ string clientName = name ?? "John Doe"; Console.WriteLine(clientName); ``` -```cs +```csharp > Jane Smith ``` @@ -52,7 +52,7 @@ Console.WriteLine(clientName); ومع ذلك ، يمكن تبسيط ذلك إلى حد كبير باستخدام مشغل التوليف الفارغ. -```cs +```csharp string clientName = name ?? "John Doe"; ``` @@ -60,13 +60,13 @@ string clientName = name ?? "John Doe"; من الممكن أيضًا استخدام المشغل الشرطي لاختبار وجود قيمة `null` وتعيين قيمة مختلفة. -```cs +```csharp string clientName = name != null ? name : "John Doe"; ``` مرة أخرى ، يمكن تبسيط ذلك باستخدام مشغل التوليف الفارغ. -```cs +```csharp string clientName = name ?? "John Doe"; ```