我更喜欢将Delegates作为参数。 所以我通常会遇到一个委托的多个参数属于同一类型的情况,我试图使其更具可读性。为此,请尝试使用c#关键字“ using”指令。

using System;
using FirstNumber = System.Int32;
using SecondNumber = System.Int32;
using Result = System.Int32;

public class FunctionPointers
    Func<FirstNumber, SecondNumber, Result> add;

    public FunctionPointers(Func<FirstNumber, SecondNumber, Result> op)
        add = op;

Intellisense snapshot From the screen shot, it is clear that alias name is same for all arguments. Is there a way to correct this? or usage of aliases is incorrect?