switch to c#