c# study snippets