Sample code for dotnet