Releasing My Code Snippet Repository

Whenever I teach classes or do demos, I get asked about the C# code snippets I use in Visual Studio, so I decided to release them, if anyone would like to use them.
I’ve created a project on CodePlex and I’ll try to update it whenever I write a new one or update the old ones. Nothing to release as such, so visit the Source Code tab to download the latest version.

Here’s a list of what I’ve uploaded so far:

C# Snippets

  • Constructor
  • Event as EventHandler
  • Event as EventHandler<T>
  • Get Property
  • List<T> Property
  • Get+Set Property
  • Get+Set Property with Changed Event
  • Get+Set Property with Changed and Changing Events
  • Get+Set Property with Changed and Cancelable Changing Events
  • Immutable Type with One Field
  • Immutable Type with Two Fields
  • Immutable Type with Three Fields
  • Throw on Null Value
  • Throw on Null or Empty String

C# Snippets for WPF

  • Dependency Property
  • Dependency Property with Change Event
  • Attached Dependency Property
  • Attached Dependency Property with Change Event
  • Single Value Converter
  • Multiple Value Converter
Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s