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?
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.
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.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With