Timesaver: Awesome New C# Property Syntax Shortcut(shafqatahmed.com)

submitted by raasielraasiel(865) 3 years, 11 months ago

A small introduction to the new property shortcut offered by C# 3.0 like this by just using code like "type prptertyname { get; set; }"

2 comments |category: |Views: 95

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 powerrushpowerrush(3873) 3 years, 11 months ago 0

Automatic Properties (and last example is using Object Initializers)

Reply

posted by rev4bartrev4bart(420) 3 years, 11 months ago 0

Anyone else saw the video posted last week on automatic properties here? This reads to be like the author watched the video and then "wrote what he saw". The video shows different classes, but the same concept and then goes into the reflector side and how the CLR generates code for the auto properties (same from the video).

Reply

information Login or create an account to comment on this story