summaryrefslogtreecommitdiffstats
path: root/debian/uncrustify-trinity/uncrustify-trinity-0.73.0/tests/input/cs/operator-null-conditional.cs
blob: 530bdd271642cd3f1a7e89df616b1851bd88b790 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
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";
}}}