CSharpFeeds - All your C# feeds in one place.

Sunday, May 29, 2011

Eduasync part 8: generated code from a complex async method

by skeet via Jon Skeet: Coding Blog on 5/29/2011 6:30:12 PM

Last time we had a really simple async method, and looked at the generated code. Even that took a little while... but in this post I'll demonstrate some of the intricacies that get involved when the async method is more complex. In particular, this time we have: A parameter to the async method A "using" statement, so we'll need a finally block Two loops The possibility of catching an exception generated from await and retrying I've not made it as complica ...

[ read more ]

Log Method Name Helper

by ssmith via Blog on 5/29/2011 3:08:00 PM

Sometimes it’s handy to see the order in which methods are firing, or how long they’re taking, without having to attach a debugger.  Typically, you might write some code like this: public void Foo() { Debug.Print("Entering Foo"); // other stuff } public void Bar() {

...

[ read more ]

Subscribe

New Feed

Product Spotlight

Recently Updated Sources

Legal Note

The content of the postings is owned by the respective author. CSharpFeeds is not responsible for the contents of the postings. This site is automatically generated and cannot be reviewed for abusive content. If you find abusive content on CSharpFeeds, please contact us. Designated trademarks and brands are the property of their respective owners. All rights reserved.

Advertise with us