fixed c-sharp example