Advertisement
VenFen

Untitled

May 4th, 2012
58
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 0.28 KB | None | 0 0
  1. namespace NullableTest
  2. {
  3.     class MainClass
  4.     {
  5.         public static void Main (string[] args)
  6.         {
  7.             var test = new Test();
  8.             test.Property1 = 20;
  9.             Console.WriteLine(test.Property1.Value);
  10.             Console.ReadLine();
  11.         }
  12.     }
  13.    
  14.     class Test
  15.     {
  16.         public int? Property1 { get;    set; }
  17.     }
  18. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement