tags:

views:

228

answers:

4

I'm teaching some .Net classes and want to give the students some good books to read during and after the class. Some will prefer VB and other will like C# so the books need to give examples in both languages.

I need one book each for these classes:

  1. Intro to .Net (Windows apps and ASP.NET together)
  2. Intermediate/advanced Windows apps
  3. Intermediate/advanced Web apps
  4. WPF/Silverlight/XAML
  5. WCF
  6. WF
  7. LINQ

Can anyone recommend a book for each category with examples in both C# and VB?

+2  A: 

I have never seen a good book with examples from both C# and VB. However, there are a number of very good C#-VB conversion books out there. O'reilly has one as an example.

http://oreilly.com/catalog/9780596003197/

I would recommend getting the book you need in VB (and supplement with a conversion guide), as VB is a little bit more 'plain english', so it should be easier for a C# programmer to understand VB than for a VB programmer to understand C#.

Stewbob
All the answers were right, but this one gave me the strategy I feel best about. I'm going to go with the best language-specific book for the framework topics and give them the pocket ref suggested by Stewbob to do the translations manually.
Rap
+1  A: 

Professional ASP.NET 3.5 by Wrox has both VB and C# examples.

RichardOD
Yep, saw that book, too. But it was the only one that I've ever seen. Wish there were books for the other topics I teach. Thanks, RichardOD.
Rap
There is Expert VB 2008 Business Objects and Expert C# 2008 Business Objects. 1 book for each language.
RichardOD
+1  A: 

If you want your students to see both C#.NET and VB.NET code from the same book that is aimed at a beginner level, there is not a book out there for them. Yet there are a large mass of books over one of the languages. I would recommend a "For Dummies" book which is over Visual Studio 2008 (All in one Reference) as a beginner's guide book.

I hope that this was the solution you were looking for!

+1  A: 

For syntax, I would say pick separate books. For the framework-related stuff, just pick the best book, ideally in the language not of your personal preference. Instruct students to convert as needed (it's not hard) and suggest books which explain how to do so. I say pick one in the language not of your personal preference because it will be very easy for you to go from the book language to your preferred language but you might hit minor syntax confusion if you do it the other way.

Brian