Automatic Properties C# 3 Reploaded(thinkersroom.com)

submitted by GandalfGandalf(465) 5 years, 2 months ago

Automatic properties are around the corner and will soon be amongst us. It's about time! Though they could have been some interesting alternative implementations ....

2 comments |category: |Views: 1

tags: another

new Add a live kick counter to your blog >> liveImage

You can even customize the image by choosing your own colors, and then clicking the button below to update the preview and the html code:

  • "Kick It" text
  • "Kick It" background
  • kick count text
  • kick count background
  • border

Simply copy and paste this HTML into your blog post.


Users who kicked this story:
Comments:

posted by yesthatmcgurkyesthatmcgurk(4063) 5 years, 2 months ago 0

Its such a non-issue with the code snippet and refactoring tools that ship with VS2k5. Besides, properties exist so that you can do validity checking before allowing callers to change your state. If you are coding properly, the number of instances where this would actually be useful (unchecked properties) should be a small minority of your total number of properties. I'd consider automatic properties "harmful."

Reply

posted by gavinjoycegavinjoyce(25.7k) 5 years, 2 months ago 0

Direct Link:

http://thinkersroom.com/bytes/2007/03/05/automatic-properties-in-c-3/

Reply

information Login or create an account to comment on this story