5
Answers

Default value for a property

Mike Steve

Mike Steve

9y
808
1
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)