Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using System;
- class NullableTypes
- {
- static void Main()
- {
- int? a = null;
- double? b = null;
- Console.WriteLine("This is integer with null value->" + a);
- Console.WriteLine("This is double with null value->" + b);
- a = 4;
- b = 2.3;
- Console.WriteLine(a);
- Console.WriteLine(b);
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement