That says something about the portability and consistency of Java, rather than the ability of c#.
The reverse is not possible due to the platform lock in.