This project is read-only.
Project Description
C# code snippets used by me, now shared with the world.

C# Snippets
  • Constructor (ctor)
  • Event as EventHandler (eevent)
  • Event as EventHandler<T> (event)
  • Get Property (propg)
  • List<T> Property (propc)
  • Get+Set Property (prop)
  • Get+Set Property with Changed Event (prope)
  • Get+Set Property with Changed and Changing Events (propee)
  • Get+Set Property with Changed and Cancellable Changing Events (propeec)
  • Immutable Type with One Field (immut1)
  • Immutable Type with Two Fields (immut2)
  • Immutable Type with Three Fields (immut3)
  • Throw on Null Value (notnull)
  • Throw on Null or Empty String (notnullorempty)

C# Snippets for WPF
  • Dependency Property (propdp)
  • Dependency Property with Change Event (propdpc)
  • Attached Dependency Property (propa)
  • Attached Dependency Property with Change Event (propac)
  • Single Value Converter (conv)
  • Multiple Value Converter (mconv)

Want to contribute snippets? Let me know: http://weblogs.asp.net/OKloeten/Contact.aspx

Last edited Dec 14, 2007 at 11:42 PM by ovanklot, version 9