Switch c# to C#