example for dotnet using c sharp