Tuesday, June 26, 2012

New feature related in C#



public class A
    {
        public int ValueA { get; set; } // New way to declare properties.
        public int ValueB { get; set; } // New way to declare properties.
        protected  A(int a,int b)
        {
            ValueA =a;
            ValueA =b;
        }

    }
    public class B : A
    {
        public B(int a)
            : base(a, 20)  // New way to calling constructors

        {
        }
    }

No comments:

Post a Comment