homph

StructTest

Nov 4th, 2013
95
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 0.58 KB | None | 0 0
  1. using System;
  2. using System.Windows.Forms;
  3.  
  4. namespace CobolTest1.CustomTypes
  5. {
  6.     public struct StructTest
  7.     {
  8.         private string s;
  9.  
  10.         public string String {
  11.             get
  12.             {
  13.                 MessageBox.Show( "Called getString!" );
  14.                 return s;
  15.             }
  16.             set
  17.             {
  18.                 MessageBox.Show("Called setString!");
  19.                 s = value;
  20.             }
  21.         }
  22.  
  23.         public int Int;
  24.         public float Float;
  25.         public double Double;
  26.         public DateTime DateTime;
  27.        
  28.     }
  29. }
Advertisement
Add Comment
Please, Sign In to add comment