© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
C#C
C#•11mo ago•
16 replies
Faker

✅ Use of Func as part of function definition

static Func<int, int> GetMultiplier(int factor)
{
    return (num) => num * factor;
}
static Func<int, int> GetMultiplier(int factor)
{
    return (num) => num * factor;
}

Hello guys, I came across this function definition where we use
Funct<>
Funct<>
as part of the function definition. I'm a bit lost here, what are we doing? I know that
Func<> 
Func<> 
is a delegate where we can store function references but here we aren't doing that. Oh, or may be that's because we are returning a function reference?
C# banner
C#Join
We are a programming server aimed at coders discussing everything related to C# (CSharp) and .NET.
61,871Members
Resources

Similar Threads

Was this page helpful?
Recent Announcements

Similar Threads

❔ ✅ Lifetime of variable referenced in Func<>
C#CC# / help
3y ago
When should one use a custom delegate instead of Func/Action/Predicate?
C#CC# / help
15mo ago