add .net sample code