Advertisement
miroLLL

NullableTypes

Sep 2nd, 2015
171
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 0.27 KB | None | 0 0
  1. using System;
  2.  
  3. class PracticeNullableTypes
  4. {
  5.     static void Main()
  6.     {
  7.         int? num = null;
  8.         Console.WriteLine(num);
  9.         int? num1 = num + 42;
  10.         Console.WriteLine(num1);
  11.         int? num2 = num = 10;
  12.         Console.WriteLine(num2);
  13.     }
  14. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement