.net samples updated to match php samples