C# templates and examples