Ray's Asp.net Blog
Answers and code snippets from ASP.NET projects (Webforms/MVC/Classic ASP)
Pages
(Move to ...)
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
‹
›
Home
View web version
No comments:
Post a Comment