diff options
Diffstat (limited to 'debian/uncrustify-trinity/uncrustify-trinity-0.73.0/tests/input/cs/operator-null-conditional.cs')
-rw-r--r-- | debian/uncrustify-trinity/uncrustify-trinity-0.73.0/tests/input/cs/operator-null-conditional.cs | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/debian/uncrustify-trinity/uncrustify-trinity-0.73.0/tests/input/cs/operator-null-conditional.cs b/debian/uncrustify-trinity/uncrustify-trinity-0.73.0/tests/input/cs/operator-null-conditional.cs new file mode 100644 index 00000000..530bdd27 --- /dev/null +++ b/debian/uncrustify-trinity/uncrustify-trinity-0.73.0/tests/input/cs/operator-null-conditional.cs @@ -0,0 +1,13 @@ +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"; +}}} |