CSharp examples for Custom Type:struct
struct can use automatic property implementation
using System;//from www. j a v a 2s . c o m class Program { static void Main(string[] args) { X x = new X { A = 1 }; // Init just the instance member of X. X.B = 2; // Init the static member. Console.WriteLine("X.A = {0}\nX.B = {1}", x.A, X.B); } public struct X { public int A { get; set; } public static double B { get; set; } } }