In my previous blog post, I explained the conversion of code formatting with the help of an example. Today I will be explaining about conversion of C# method names and other code formatting to java that can be achieved by using CodePorting C#2Java Application. Using CodePorting you can import your .Net Project directly from your repository, instantly convert it to java and download it or export it back to your favorite repository. CodePorting has made it very easy to access your online repositories without leaving the Codeporting Environment and it also supports version control systems like Git, Subversion, Mercurial (hg). Lets take an example of code formatting conversion: [B]C# Code:[/B] namespace CsPorter.Examples.Formatter { [B]public[/B] [B]class[/B] Test16 { [B]void[/B] Method([B]float[/B] f1, [B]float[/B] f2,[B]float[/B] f3) { [B]float[/B] ff = f1 + f2; ff = f1 + f2 - f3 * ff / f1; [B]double[/B] d = f1 + f2 * f3; d = ff*ff + 42f; ff = f1/2 + ([B]float[/B]) d; f1 = MethodF(f1 + f2*f3); f1 = MethodF(f1 + f2*f3)*f1 + f2; ff = f1 * (FX - FX); } [B]float[/B] MethodF([B]float[/B] f) { [B]return[/B] 42f * f; } [B]float[/B] FX { get { [B]return[/B] 42f; } } } } [B]Java Code:[/B] [B]package[/B] CsPorter.Examples.Formatter; [I]// ********* THIS FILE IS AUTO PORTED FORM C# USING CODEPORTING.COM *********[/I] [B]public[/B] [B]class[/B] Test16 { [B]private[/B] [B]void[/B] method([B]float[/B] f1, [B]float[/B] f2,[B]float[/B] f3) { [B]float[/B] ff = f1 + f2; ff = f1 + f2 - f3 * ff / f1; [B]double[/B] d = f1 + f2 * f3; d = ff*ff + 42f; ff = f1/2 + ([B]float[/B]) d; f1 = methodF(f1 + f2*f3); f1 = methodF(f1 + f2*f3)*f1 + f2; ff = f1 * (getFX() - getFX()); } [B]private[/B] [B]float[/B] methodF([B]float[/B] f) { [B]return[/B] 42f * f; } [B]private[/B] [B]float[/B] getFX() { [B]return[/B] 42f; } Code (markup): In the above example it is clear that C# method names have been converted to Java style method names and same goes for getter names.