various .NET samples in C#