Trying to make the c# code block work