adding c sharp version of this example

This is to fix issue #1