Click here to Skip to main content
15,889,595 members
Articles / Programming Languages / C#

Setting a default value for C# Auto-implemented properties

Rate me:
Please Sign up or sign in to vote.
4.73/5 (8 votes)
12 Jan 2012CPOL 29.6K   2  
After describing it so much, I felt the need to go ahead and implement it. So here goes...using System;using System.Collections.Generic;using System.ComponentModel;using System.Linq.Expressions;using System.Reflection;namespace DefaultValue{ /// /// The...

Views

Daily Counts

License

This article, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)


Written By
Architect
United States United States
Since I've begun my profession as a software developer, I've learned one important fact - change is inevitable. Requirements change, code changes, and life changes.

So..If you're not moving forward, you're moving backwards.

Comments and Discussions