Help required to convert Java code to C#

Jay P 1 Reputation point
2022-06-06T08:45:28.997+00:00

Hello,

I am a self learner and I am trying to work with a scenario project which was initially created in Java. Now I am trying to understand and make it compactible with C# with .Net Core 5.0+. However I am receiving many errors which I am unable to recognize. Hope I can find some solution with the help you may provide.

I am basically trying to understand how to work with semaphore. As well how to work with such scenario provide such as restaurant.

I would really appreciate if you can help to find solution to this.

There are four classes created for this project. In the attached file, I have added converted code as well error which I am under every file. However I am unable to upload .cs or . java file which would help to simply upload in solution project

Attached CS files tried to work on
208637-csprojfiles.txt

Attached Java Files (Original Source File)
208685-javaprojfiles.txt

Developer technologies C#
{count} votes

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.