© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
C#C
C#•4y ago•
4 replies
Hugh

✅ Sharing a Func alias between files

Hi all,

I've currently got the following at the top of 2 different files:

using MyFunc = Func<string, string, int, float, string>;
using MyFunc = Func<string, string, int, float, string>;


Because it's a
using
using
, as I understand it, it's only available to that one file.

How can I do something where I only define this function type in one place, and can use it in multiple files?
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

Giving parameters to a Func.
C#CC# / help
3y ago
Sharing PNG/SVG resources between WPF projects
C#CC# / help
2y ago
✅ Using Dependency Injection, sharing singletons between builders?
C#CC# / help
4y ago
Exporting Func/Action?
C#CC# / help
3y ago