Oh. I'm not familiar with Roeder's Reflector, but I can see where that
could help. Of course, that would mean writing the whole thing in Java
first, and then rewriting it in C#. I really do appreciate the reply,
but it still seems to be an inefficient use of time. Would it make
sense to create HelloWorld in Java, convert it .NET, and then decompile
it just to find out that the equivalent of System.out.println("Hello,
world!"); in C# is System.Console.WriteLine("Hello, world!");?
Again, I really DO appreciate that you've taken the time to reply.
Maybe I'm missing something.
Peter wrote:
> What I was proposing was that after you get your Java classes compiled as
> .NET assemblies, it is easy to use tools like Roeder's Reflector to decompile
> them into C# source code. This makes the task of comparing how one would
> perform the analogous coding in .NET very easy.
>
> Peter
> --
> Co-founder, Eggheadcafe.com developer portal:
> http://www.eggheadcafe.com
> UnBlog:
> http://petesbloggerama.blogspot.com
>
>
>
>
> "TomC" wrote:
>
> > I'm not trying to convert an existing Java application. I'm trying to
> > learn C#, and I have an idea of something that I'd like to attempt as a
> > learning project.
> >
> > I know what I would do if I was writing it in Java, but I don't want to
> > write it in Java first and then let some tool convert it to .NET. I
> > want to write it in C#. But to do that, I need some way to figure out
> > which library classes in .NET would be somewhat analogous to the
> > library classes that I'd use in Java.
> >
> > Peter wrote:
> > > Import your .java class files into Visual Studio, which will use the JLCA to
> > > translate them to J#.
> > > Now they are .NET classes.
> > > Peter
> > >
> > > --
> > > Co-founder, Eggheadcafe.com developer portal:
> > > http://www.eggheadcafe.com
> > > UnBlog:
> > > http://petesbloggerama.blogspot.com
> > >
> > >
> > >
> > >
> > > "TomC" wrote:
> > >
> > > > Is there any resource where someone who is familiar with Java might
> > > > find which .NET classes are similar to classes they are familiar with
> > > > in Java? For example, I have a project that I'd like to tackle as a
> > > > learning project. In Java, I'd subclass the Panel or JPanel class. Is
> > > > there someplace where a Java programmer who is learning C# could
> > > > quickly find out what the analog for those classes are?
> > > >
> > > >
> >
> >