Skip to main content
Code sample in Swift, C# and Java
Main menu
About
History
Swift
C#
Java
Python
You are here
Home
»
Forums
»
C#
»
C#: Work with simple types
»
C#: Work with nullable types
Getting values from nullable types in C#
Submitted by
obraztsov
on Thu, 12/03/2015 - 12:09
Forums:
C#: Work with nullable types
int
? n1 = 42;
var
value = n1.Value;
//value is 42, Int
Log in
to post comments