New dotnet code sample