Java Support For C# Indexers - c#

How can Java support C# indexers?

It's not possible at this time, however this may provide you with some information on the currently accepted Java way (which unfortunately is just methods):
Java VS C# : Indexer
Good luck.

Related

Using IronPython in C#

I've recently discovered IronPython in C# and only tutorials I found were how to use python script in C#, but I've noticed, that IronPython has classes and methods you can use directly in C# like : PythonIterTools.product some_pr = new PythonIterTools.product(); and others, can anyone explain how does this work?
Parts of IronPython's standard library are implemented in C#, mainly because the equivalents in CPython are written in C. You can access those parts directly from a C# (or any other static .NET language) directly, but they're not intended to be used that way and may not be easy to use.

Using C# classes with Java

Is there any way to use C# classes (of a project) into another java project?
Or any other possible solution for this (like conversion - example: Java Language Conversion Assistant).
Since now, thanks.
C# -> Java
CodePorting C#2Java is a web-based tool for converting C# applications and source code into Java. (http://visualstudiogallery.msdn.microsoft.com/9789645d-9b31-4033-bcb1-53dc5ff58e05)
Google give you several options
https://www.google.com/search?q=C%23+to+Java

andengine for c sharp

I've come across some discussion about C# and Java and it seems that a lot of programmers here in StackOverflow like C# more than java. Look here
I'm just curious if I can use the andegine library in C# using mono?
OR to be precise can I use java libraries in C# when creating an android application?
Is there a disadvantage of using C# instead of Java and if it is possible to use a Java library in C#, can you give me some example? I'm quite confused.
If you wish to use a Java library you should use Java.
It isn't possible to directly use a Java library from C#, but if you want to use C# you could:
Find a similar library that is written for .NET.
Andengine is open source. You could choose to port it to C#, though this would take a long time.

can use a library created in vb.net or c# in java?

I have written some classes in C# and compiled it. Now I have the library file for these classes. Can I use the same dll with Java?
I do not want to write it in Java once again because I am writing the same program in different languages (trying to do so).
So I am making the classes to a library file and want to use it in all the programing languages.
Java normally uses a completely different runtime (inside the JVM). There are tools intending to help bridge the gap (IKVM leaps to mind), but in general: no, you can't do this. Of course, you can use IPC etc to talk between them, but they are not best friends.
One area you can look into is JNI (Java Native Interface), see http://en.wikipedia.org/wiki/Java_Native_Interface as a starting point. There are possibly easier to use bridges for .NET to Java, ah here we go, see Calling C# code from Java?
You need to searialize your code into byte, xml or json. so you can use your codes in another language

Convert java to c# .net [duplicate]

This question already has answers here:
Closed 13 years ago.
Possible Duplicate:
Tool to convert java to c# code
I have done a project in java and I want to convert it to C#.Net. I'm using Visual Studio 2008. How can I convert the code from Java to C#? Are there any tools available?
There are tools that can help do this. For example this one from the team who created db4o:
Smart java to c# conversion for the masses with sharpen
Note that these are not perfect and some constructs and API's cannot be easily translated.
IKVM.NET Bytecode Compiler
Here is an Msdn Article about converting from Java to Visual C#.
I think your best shot would be, unless you really really need all the code in C#, to use Visual J# and integrate your Java code with C#.
Microsoft used to support their own .net implementation of the Java language, called Java#, but unfortunetelly they discontinued the project.
But at least you could try it to see if it could help you to convert your code to .net

Categories

Resources