KnowledgeHub
Questions
Tags
Users
Search
Alex Rivera
|
Logout
Edit Question
Title
Body
Edit : If you're seeing this same problem (and you're accustomed to NOT seeing this under VS2010) please comment below so I know it's not just me - but be sure to check Han's answer to make sure none of those scenarios appear... I've been updating my app to run with .NET 4.5 in VS2012 RTM and noticing something that I don't quite understand and that is unexpectedly green highlighted statements (instead of yellow). Now I'm well aware of what this is supposed to mean, and the IDE is even showing me a little explanation tooltip. This is the next statement to execute when this thread returns from the current function However there's absolutely nothing asynchronous or thread based about this code. In this simple example I'm sure you'll agree that string.ToUpper() won't be off in another thread. I can step through the code no issue. There's nothing else going on and I am on the main thread as you can see here. I am using async and await and MVVM-Light (the above method is the result of a RelayCommand) but I still get this behavior even when the code path is directly off an event handler such as PreviewKeyDown . If I create a new app I cannot duplicate this - the coloring is yellow as expected - even when using await . Anybody got any idea? It's starting to drive me crazy!!
Tags (comma-separated)
Save Edits
Cancel