Updated with new syntax for c# code block