From Java to C#