C#C
C#2y ago
TahaA

Comments in curried lambda expression

Just a quick question. Do you think the comments I used here are correct? If needed I'll provide the whole code:
    public static Func<double, Func<double, double>> GetPriceCalculator(double taxRate)
    {   
        Func<double /*discount*/, Func<double /*price*/, double/*final price*/>> GetFinalPrice = discount => price => price * (1 - discount) * (1 + taxRate);
        return GetFinalPrice;
    }
Was this page helpful?