Programming C# 5.0 code samples