Mike Steve

Mike Steve

  • 1.9k
  • 64
  • 27.1k

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;
}




Brought to you by: JavaScript SDK for Bold BI dashboard and analytics embedding. Free trial.

Answers (5)