Csharp Code samples