replicator.org ... incoherent code

Home

C# Hacks

25 November, 2008 - 13:04 — armin

This is a collection of simple and smart hacks for C# version 3.

  • 01 DisposeAction
  • 02 string.Format() extension method.
  • 03 Tired of for(int i = 0; i != array.Length; ++i)?
  • 04 Context Stacks
  • 05 Deriving a Setter from a Lambda Getter
  • 06 Lazy Initialization of Dictionaries
  • 07 Lazy Initialization of Fields
  • 08 Exception Paranoia
  • 09 Clones everywhere
  • 10 Separating the "synchronization concern"
  • 11 Refactoring friendly WPF dependency properties
  • 12 Pre-construction time field injection
01 DisposeAction ›
  • Add new comment
Copyright (c) 2004-2010 Armin Sander -- All rights reserved.

Projects

  • SharedSafe
  • LightConcept
  • ScreenEstate
  • Konstruktor
  • C# Hacks
  • Quotes

Social

  • Twitter
  • Bookmarks
  • About Me
  • Ask Anything
  • Site slogans

    Recent blog posts

    • The first API to learn is the Unit Testing API, or have you ever heard of Test Driven Learning?
    • Beware of hidden API bombs
    • Convention based event wiring
    • Priority Splitting
    • SharedSafe build 1911: SharedSafe is getting Hashes!
    • SharedSafe build 1852
    • ScreenEstate Beta for Windows Vista and 7
    • SharedSafe build 1835: bug fixes
    • My simplistic view of religious people
    • Konstruktor update: constructor precedence selection
    more