Skip to content
Advertisement

How to convert this Java code in C# code?

I tried to convert my Java code in C# but I missed something.

Java code

JavaScript

Which is converted by tool like following:

JavaScript

but getting error:

Using the generic type ‘MyDataClass’ requires 1 type arguments

Java code

JavaScript

Converted to C#

JavaScript

Advertisement

Answer

You should change type of Data to IDictionary<String, MyDataClass> and remove type argument <T> from MyDataClass

User contributions licensed under: CC BY-SA
2 People found this is helpful
Advertisement