Top "Func" questions

Func is a family of delegate types in the .Net framework.

How to convert System.Linq.Enumerable.WhereListIterator<int> to List<int>?

In the below example, how can I easily convert eventScores to List<int> so that I can use …

c# linq action func
Delegates: Predicate vs. Action vs. Func

Can someone provide a good explanation (hopefully with examples) of these 3 most important delegates: Predicate Action Func

c# delegates predicate func
How do you use Func<> and Action<> when designing applications?

All the examples I can find about Func<> and Action<> are simple as in the one …

c# delegates action anonymous-methods func
Array and slice data types

I found myself confused with the array and slice data types. From Go docs, arrays are described as follows: There …

arrays go slice pass-by-value func
Can someone explain what the C# "Func<T,T>" does?

I'm reading the Pro MVC 2 book, and there is an example of creating an extension method for the HtmlHelper class. …

c# func
Func delegate with ref variable

public object MethodName(ref float y) { //method } How do I defined a Func delegate for this method?

c# c#-3.0 reference delegates func
Lambda\Anonymous Function as a parameter

I'm a very new to C#. Just playing around with it. Not for a real purpose. void makeOutput( int _param) { …

c# delegates func
Func<T>() vs Func<T>.Invoke()

I'm curious about the differences between calling a Func directly vs using Invoke() on it. Is there a difference ? Is …

c# invoke func
C# - How do I define an inline method Func<T> as a parameter?

I've written a simple SessionItem management class to handle all those pesky null checks and insert a default value if …

c# generics func inline-method
The request message was already sent. Cannot send the same request message multiple times

Is there anything wrong with my code here? I keep getting this error: System.InvalidOperationException: The request message was already …

c# .net async-await dotnet-httpclient func