Click here to Skip to main content
15,895,746 members
Articles / Programming Languages / C#

Deriving from System.Threading.Tasks.Task - Tying The Knot in C#

Rate me:
Please Sign up or sign in to vote.
4.82/5 (12 votes)
4 Feb 2014CPOL14 min read 39.9K   297   17  
You can subclass Task - but it is tricky. Here's how you do it by "tying the knot" - using lambdas and variable capture to implement lazy evaluation

Alternatives

Members may post updates or alternatives to this current article in order to show different approaches or add new features.

No alternatives have been posted.

License

This article, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)


Written By
Architect Bakin's Bits
United States United States
I've been programming for 35 years and I'm still learning new things. My major interests recently are programming models and methods for concurrency, applications of functional programming, and doing interesting things with Mathematica.

Comments and Discussions