f3e3aab35a
Former-commit-id: 9c2cb47f45fa221e661ab616387c9cda183f283d
20 lines
217 B
C#
20 lines
217 B
C#
using System;
|
|
|
|
public class X
|
|
{
|
|
string field;
|
|
|
|
public static int Main ()
|
|
{
|
|
X x = null;
|
|
|
|
try {
|
|
var res = (x?.field).ToString()?.Length;
|
|
return 1;
|
|
} catch (NullReferenceException) {
|
|
|
|
}
|
|
|
|
return 0;
|
|
}
|
|
} |