Top "Func" questions

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

Assigning a Func to an Expression and vice versa

I was tampering with Expressions and I got confused at some points We can assign same LamdaExpression to both Expression …

c# linq lambda expression func
C# Action and Func parameter overloads

I need a method that takes an Action (or a Func), but the Action has a mixed number of parameters. …

c# parameters action overloading func
What's so great about Func<> delegate?

Sorry if this is basic but I was trying to pick up on .Net 3.5. Question: Is there anything great about …

delegates lambda expression func
C#: Elegant way to wrap method calls

Apologies for the fairly ambiguous title but what I'm trying to achieve is probably better stated in code. I have …

c# decorator func
swift ios - How to run function in ViewController from AppDelegate

I am trying to run a function in certain ViewController using AppDelegate func applicationDidBecomeActive(_ application: UIApplication) { ViewController().grabData() } But somehow …

ios swift function appdelegate func
Why is Action/Func better than a regular Method in .Net?

I much prefer using an Action or a Func if I need a quick reusable piece of code, however others …

c# .net action func
C#: Func<> instead of methods?

This is a curiosity questions for you all in the know: Is there any harm/downside to using a Func …

c# .net linq c#-4.0 func
Concatenate two Func delegates

Assume that I have thes Class: public class Order { int OrderId {get; set;} string CustomerName {get; set;} } I declare below …

c# lambda concatenation func
Using a Func<> over an interface?

I have an already existing generic class public class Foo<T> { private T _item; public Foo(T item){ _…

c# design-patterns interface func solid-principles
Pass selector (function name) to function in swift

I want to pass the selector for a function to another function. Right now I'm just passing the string and …

swift func