projects
/
mono.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
Merge pull request #2454 from tastywheattasteslikechicken/FixVtableAbort
[mono.git]
/
mcs
/
tests
/
test-null-operator-23.cs
1
using System;
2
3
public class X
4
{
5
string field;
6
7
public static int Main ()
8
{
9
X x = null;
10
11
try {
12
var res = (x?.field).ToString()?.Length;
13
return 1;
14
} catch (NullReferenceException) {
15
16
}
17
18
return 0;
19
}
20
}