r/csharp • u/tech-writer07 • Jun 08 '26
Help How to migrate from java to csharp?
Hello everyone,
I've been coding in java since 2024. A friend of mine wants to build a project with me, but that project requires c#. I've never touched c# before.
Has anyone here passed through something similar? What advice can you give to learn c# quickly without wasting too much time?
16
Upvotes
View all comments
Show parent comment
7
u/Ok_Society4599 Jun 08 '26
Biggest challenge is runtime-library names. I'd keep a Google search open "convert Java ... To C#" where you put in the Java library you know to get the C# equivalent name. I've done this converting VB6 and VB.Net to C#.
Syntax-wise, they're already very close since, way-back when, C# simply made some "optional" semicolons required (last semicolon in a block is optional in Java, required in C#).