Click here to Skip to main content
15,902,189 members
Please Sign up or sign in to vote.
1.00/5 (2 votes)
See more:
Can we use class of C# in Java ?
I have an class which is written in C# , i want to use it in Java .
Please anyone answer me.
Posted
Comments
TorstenH. 27-Sep-12 1:41am    
...Probably a strange answer - but I want to ask anyway: Why? You should decide to use Java or C#. The "cost" of using JNI in this is bigger than most advantage could be.
[no name] 27-Sep-12 3:48am    
+5!

1 solution

This is possible, but certainly not very easy. See this article for an approach:
C# method calls within a Java program[^]
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900