536cd135cc
Former-commit-id: 5624ac747d633e885131e8349322922b6a59baaa
11 lines
311 B
C#
11 lines
311 B
C#
// CS1061: Type `int' does not contain a definition for `GetValueOrDefault' and no extension method `GetValueOrDefault' of type `int' could be found. Are you missing `System.Collections.Generic' using directive?
|
|
// Line: 9
|
|
|
|
class C
|
|
{
|
|
static void Main ()
|
|
{
|
|
int? i = 4;
|
|
var m = i?.GetValueOrDefault ();
|
|
}
|
|
} |