Ray's Asp.net Blog
Answers and code snippets from ASP.NET projects (Webforms/MVC/Classic ASP)
Pages
Event registration app with QR/Paypal
Home
Monday, January 6, 2014
How to set default value for Auto-Implemented Properties in C#
Auto-Implemented Properties:
public string Name { get; set; }
Not you can not modify property directly, you could put default in class constructor.
No comments:
Post a Comment
Newer Post
Older Post
Home
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment