Converting Visual Basic to C#