I\'m trying to define a pair of type aliases at the top of my C# program. This is a short example of what I\'m trying to do:
using System;
using System.Colle
(Adding this here because I ran across this question a lot when searching for a related issue, so it might help others)
If you're looking to use aliases to functions for a functional style of programming, what you're looking for is the delegate
keyword.
You can think of delegate
as making an interface, except it's for a function.
so instead of
using Expression = Func
you do
, Expression>;
delegate string Expression();
delegate Expression Converter(List
https://weblogs.asp.net/dixin/functional-csharp-function-type-and-delegate