About 52 results
Open links in new tab
  1. What is Func, how and when is it used - Stack Overflow

    Sep 2, 2010 · The Func is a custom delegate defined in System namespace that allows you to point to a method with the same signature (as delegates do), using 0 to 16 input parameters and that must …

  2. c# - Delegates: Predicate vs. Action vs. Func - Stack Overflow

    May 6, 2017 · Func : Func can take n input parameters but it will always return the result of the provided type. Func<T1,T2,T3,TResult>, here T1,T2,T3 are input parameters and TResult is the output of it. …

  3. In C#, What is Func<T1, T2>, and what is it for? - Stack Overflow

    May 18, 2009 · In other words, Func<int, string> is a delegate which represents a function taking an int argument and returning a string. Func<T, TResult> is often used in LINQ, both for projections and …

  4. c# - Func vs. Action vs. Predicate - Stack Overflow

    Func is a delegate (pointer) to a method, that takes zero, one or more input parameters, and returns a value (or reference). Predicate is a special kind of Func often used for comparisons (takes a generic …

  5. How can I pass in a func with a generic type parameter?

    Mar 24, 2014 · 46 I like to send a generic type converter function to a method but I can't figure out how to do it. Here's invalid syntax that explains what I like to achieve, the problem is I don't know how to …

  6. Action/Func vs Methods, what's the point? - Stack Overflow

    Dec 30, 2016 · Action and Func are framework-provided Delegate types. Delegates allow functions to be treated like variables, meaning that you can (among other things) pass them from method to method. …

  7. c# - Func delegate with no return type - Stack Overflow

    May 27, 2009 · All of the Func&lt;T&gt; delegates return a value. What are the .NET delegates that can be used with methods that return void?

  8. C#: Func<T, TResult> for generic methods - Stack Overflow

    May 14, 2010 · That is, if you're working within a generic class, for example, then within a method in that class you might be able to declare a Func<T>. You could also do this within a generic method.

  9. c# - Using Func delegate with Async method - Stack Overflow

    May 17, 2016 · Using Func delegate with Async method Asked 9 years, 11 months ago Modified 1 year, 10 months ago Viewed 163k times

  10. Please what does func() mean in python when used inside a function

    23 func is an argument given to the function identity_decorator(). The expression func() means "call the function assigned to the variable func." The decorator is taking another function as an argument, and …