JavaToCSharp icon indicating copy to clipboard operation
JavaToCSharp copied to clipboard

Java to C# converter

Results 28 JavaToCSharp issues
Sort by recently updated
recently updated
newest added

Input: ```java public class Foo { public static boolean isNegative(T number) { return number.longValue() < 0; } } ``` Output (incorrect): ```c# public class Foo { public static bool IsNegative(T...

bug

1. java package javax.validation.constraints.* to C# package System.ComponentModel.DataAnnotations.* support. 2. lombok.Data support C# { get; set; } 3. Java attribute hump named to C# PASCAL naming style 4. Java Integer...

Support Java 17 Sealed Classes https://docs.oracle.com/en/java/javase/17/language/sealed-classes-and-interfaces.html#GUID-0C709461-CC33-419A-82BF-61461336E65F

enhancement

Support Java 16 Record Classes. https://docs.oracle.com/en/java/javase/16/language/records.html#GUID-6699E26F-4A9B-4393-A08B-1E47D4B2D263

enhancement

Support Java 15 Text Blocks. https://docs.oracle.com/en/java/javase/15/language/text-blocks.html#GUID-221D06A2-FF54-4DB3-A6DA-179B8F76DB05

enhancement

I think we can translate enums with values to be sealed classes with `public static readonly` members. Example: ```java public enum LineSeparator { CR("\r", "CR (\\r)"), LF("\n", "LF (\\n)"), CRLF("\r\n",...

enhancement
help wanted
good first issue

This arguably goes beyond syntactic translation, although you could also argue that the syntax of a format string is different between the languages. Would be really cool to translate into...

enhancement
help wanted

Currently one of the biggest headaches I've run into is that `break` and `continue` with label aren't translated, and the resulting code is likely incorrect as you would usually only...

enhancement
help wanted

# Issue When converting a java file which contains the following the conversion fails: ```java static final int FLAG_LONG_FRAME = 0b10; static final int FLAG_COMMAND_FRAME = 0b100; ``` ```text System.FormatException:...

This PR closes #125 by converting java bounded type parameters in class declarations into C# generic type constraints. Draft will be ready after merge #126, rebase, and fix comment tests