I have Visual Studio 2012 RC installed on Windows 8 Release Preview and my question is are there any useful new features not related to Metro, or is Metro what seperates .Net 4 and .Net 4.5?
-
78So annoying when you find a SO question on google which is exactly what you're looking for but it's closed ['Not a real question']. Who cares if it's not a 'real' question? it's the second result when googling 'whats new in c#5' and it's now a closed question. If people are searching for it, and landing here, how can it not be a valid question?– Gary WFeb 4, 2013 at 10:35
-
1@GaryW The link provided by svick more or less sums it up, .Net 4.5 is an in place upgrade of .Net 4, so you get the bug fixes to the 4.0 compiler for free (which sounds good until you need to to support .Net 4 machines, in which case this can be problematic as things that run fine on your dev machine may crash on the target machine), apart from that its Async and Await (which work on .net 4), caller information, and Visual Studio 2012 has better intellisense.– JMKFeb 4, 2013 at 11:21
-
10I voted to re-open. The answers to everything asked on SO are out there in books and documentation, but the community is usually better able to divine the important parts and teach more clearly, give better examples. That's why we use SO! That's why we like it. It's a good question which is has a practical slant. Stop closing questions, we all derive a VAST amount of value from opinion in life and SO is no different!– Luke PuplettNov 25, 2013 at 10:53
-
17This is completely ON topic, in my opinion, and amusingly the mod who closed it has plenty of up-votes for answering "What are the Best free controls for .NET?"... duplicity at its' best! :)– Moo-JuiceDec 14, 2013 at 13:00
-
3I think the moderatero who closed this topic owes a clear explanation to the people who googlified here.– Burak KarakuşOct 4, 2014 at 20:14
|
Show 5 more comments
1 Answer
See What's New in the .NET Framework 4.5 and What's New for Visual C# in Visual Studio 2012.
The biggest new feature of C# 5.0 is better support for asynchronous operations, using the new await
keyword.