Click here to Skip to main content
15,068,433 members
Please Sign up or sign in to vote.
2.00/5 (4 votes)
See more:
Hi Code project support. can you tell me how to delete my previous questions from code project site.
Updated 16-May-13 20:57pm

1 solution

By using auto properties means compiler will automatically create private variables at runtime and assign them; hence you need not create them by yourself. Therefore you save considerable amount of time. This is only the advantage of them I think.

But most of the time it is not recommended to use auto properties because of the fact that debugging will not be able to and also there could be problems related to serialization/deserialization of objects if needed for your project now or in future. Then you might have to again change those all auto properties to regular properties.

So finally my suggestion is to use normal properties (along with the local private variables) to be on safe side always :)

Hope you got it!!!

If any queries plz let me know.
Mohammed Hameed 16-May-13 7:27am
Why downvote if this is an accepted Solution?

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

CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900