© 2026 Hedgehog Software, LLC
Twitter
GitHub
Discord
System
Light
Dark
More
Communities
Docs
About
Terms
Privacy
Search
Star
Feedback
Setup for Free
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#
Join
We are a programming server aimed at coders discussing everything related to C# (CSharp) and .NET.
61,871
Members
View on Discord
Resources
ModelContextProtocol
ModelContextProtocol
MCP Server
Similar Threads
Was this page helpful?
Yes
No
Recent Announcements
Similar Threads
Giving parameters to a Func.
C
C# / help
3y ago
Sharing PNG/SVG resources between WPF projects
C
C# / help
2y ago
✅ Using Dependency Injection, sharing singletons between builders?
C
C# / help
4y ago
Exporting Func/Action?
C
C# / help
3y ago