Mike Steve

Mike Steve

  • NA
  • 64
  • 36.6k

Default value for a property

Nov 26 2014 5:12 AM
It is possible assign  default value to property like below?


//private int myInteger = 12345; // I don't want this local variable 


but I want to assign a default value to below one

Public int MyInteger
{

        get;

        set;
}




Answers (5)