summaryrefslogtreecommitdiffstats
path: root/debian/uncrustify-trinity/uncrustify-trinity-0.74.0/tests/expected/cs/10150-operator-null-conditional.cs
blob: 61ac6d741cbaca54e9dc2e8486ab0737abcc5f69 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
public class test
{
   public static void TestOfNullConditionalOperator()
   {
      string s = "Test";

      if (s ?. Length > 0)
      {
         s = "Test";
      }
      if (System . Reflection . Assembly . GetEntryAssembly() ?. GetName() != null)
      {
         s = "Test";
      }
   }
}