Do I know what is the difference between C # 4.0 and C # 2.0? Is C # 4.0 compatible for backward compatible C # 2.0?
Can I say that C # 4.0 is a superset of C # 2.0 (like C is ++)?
Thank you.
C # 4.0 Approximately is backwards compatible with previous versions but These are the most common codes for which you will not report these breaking changes.
For new features in C # 4, you can check the example that has a good summary with examples. The key points are:
- Look for the dynamic member
- Covertist and Defendant General Type Parameter
- Optional Referral Keyword
- Optional parameters and named logic
- Indexed properties
Also remember that there was another version in between - C # 3.0 one of the most important joints LINQ's and all the features have been added to make it possible. The difference between C # 2.0 and 3.0 is significantly higher than the difference between C # 3.0 and 4.0.
By the way, all valid C code is not valid C ++ as you see in your question:
In strict mathematical sense, C ++ There is no subset of ++ programs that are valid but are not valid C ++ and there are ways to write some code that have a different meaning in C and C ++.
Comments
Post a Comment