adding c-sharp code