Advertisement
Kamen_Mitev

Untitled

May 18th, 2013
84
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.36 KB | None | 0 0
  1. using System;
  2.  
  3. class NullableTypes
  4. {
  5. static void Main()
  6. {
  7. int? a = null;
  8. double? b = null;
  9. Console.WriteLine("This is integer with null value->" + a);
  10. Console.WriteLine("This is double with null value->" + b);
  11. a = 4;
  12. b = 2.3;
  13. Console.WriteLine(a);
  14. Console.WriteLine(b);
  15.  
  16. }
  17. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement