Code snippets for .NET