Matt Gerrans
Posts: 1153
Nickname: matt
Registered: Feb, 2002
|
|
Re: Advice needed for Java to C# transition
|
Posted: Feb 17, 2004 7:56 PM
|
|
The transition is not too tough. As mentioned already, you need to be more explicit in your declarations, using virtual and override keywords, for concepts that are implicit (or default behavior, as it were) in Java.
Also, you won't be using inner classes as you did in Java, particularly anonymous ones. C# does have an inner class but it is only of the static variety and I don't think it is very idiomatic to use it much (I think I did use it once early on when I started with C#, but that was probably because I was using a Java idiom -- today I would probably solve that same problem differently (I'll have to go back and look at that...)). Instead of inner classes, you'll be using delegates and events in C#.
Overall, C# has more bells and whistles, but you can get by without learning everything from the get-go and your Java knowledge will stand you in good stead.
|
|