add existing c sharp code