Tech
Forums
Jobs
Books
Events
Live
Interviews Prep
More
Learn
Training
Career
Members
Videos
News
Blogs
Login
Sign Up
Ask Question
5
Reply
Default value for a property
Mike Steve
Nov 26 2014 5:12 AM
786
Reply
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;
}
Upload Source Code
Select only zip and rar file.
Post
Reset
Cancel
Answers (
5
)
Next Recommended Forum
Nested webgrid in asp.net mvc
Windows Media Player ActiveX control in .NET 4.0