My C# books are for 3.0, but I'd like to install 4.0 if it won't make any difference with the code. Will it be compatible?
+7
A:
Here is an article with a list of links about breaking changes in .NET 4.0. The links are collected from the answers in this Stack Overflow question.
Mark Byers
2010-04-20 22:57:16
Thanks for linking to my article!--jeroen
Jeroen Pluimers
2010-04-27 09:50:39
A:
It will be compatible, however .NET 4.0 will have many more features not documented in your book.
derek
2010-04-20 22:57:42
There are breaking changes with .Net 4.0 so you couldn't guarantee it would be compatible. That said, it does install side-by-side so you can continue to run 3.0 code on 3.0 with 4.0 also installed.
Lazarus
2010-04-20 23:01:24
+3
A:
In general, any feature documented in your book will most likely work, without change, on .NET 4.0. There are some breaking changes in C# 4, but most deal with adding new features (ie: variance) or fixing things that were really "wrong" before, but not caught by the compiler (such as ?? operator changes).
If you're using C# 3.0 features in a "standard" way, they'll work perfectly well in C# 4.
Reed Copsey
2010-04-20 23:07:12