update c# sample