C# Parallel Task methods that return value using Func<> -


I want to use TASK to run parallel activities. This function returns a value. How do I use FUNC inside a work? Returning a price? I get an error in funk

  Tasks & lt; Line & gt; Source = new job & lt; Line & gt; (Func & lt; line & gt; check = () = & gt; {var sFields = (in XFactory.Slot from C ("Identifier A") where c ["SlotID"] == "A100" new {field} = C ["Test"]}}}});  

I have my code

  Task source = Task Factor.start ((=) = & Gt; {Return (from XFactory.Slot to c "Identifiers A") where C ["SlotID"] == Select "A 100" new {field = C ["test"]}}}}  

Your basic pattern will look like this:

  Tasks & LT ; Line & gt; Source = Task Factory. Returns some;; line row = source.Result; // sync and exception handling.  

Comments