Java to C# program conversion

R

Ray Mitchell

Hello,

I'm trying to learn C# and as a motivation I have a fairly complex Java
program I'd like to convert. It involves networking, file IO, and more. Is
there any kind of reference available that gives the C# equivalents of the
various Java classes/methods? I'm not so concerned with GUI as I am with
the things the IDE won't do for you, for example, the C# equivalents of the
Java Vector, BufferedReader, and PrintWriter classes. Also, samples of
common operations, such as client and server applications, done in both
languages would be very instructive. I don't know Java and don't want to
spend time learning it any more than I have to, so such a "cheat-sheet"
would be very helpful to get off and running.

Thanks,
Ray Mitchell
(e-mail address removed)
 
R

Ray Hsieh (Djajadinata)

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

The best source I've come across so far for this would be "C# For Java
Developers" by Allen Jones (be careful not to get it mixed with "C# For
Java *Programmers*", which is a different book altogether). It has been
very useful for me.

However, if you don't know Java and you don't want to learn Java, and
your ultimate objective is to learn C#, then why bother converting a
Java program? A cheatsheet or the book I mentioned would help you
tremendously if you're already conversant with Java, because then you
don't need to learn new concepts--you simply transfer it to C# while
keeping the differences and similarities in mind. But if you don't know
Java and you don't want to learn Java, like you said, then it would just
confuse you. Get a good C# book instead!

- --
Ray Hsieh (Djajadinata)
ray underscore usenet at yahoo dot com
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.3 (MingW32)
Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org

iD8DBQE/m62EwEwccQ4rWPgRArxrAJ9zlCP1Kma1KdYRvzkT/HpwzCGEjQCdFSZM
h8FIbEUTDxEq6rhtFdQamfI=
=B9PQ
-----END PGP SIGNATURE-----
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top