C#C
C#3y ago
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>;


Because it's a 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?
Was this page helpful?