public static Func <TX, TZ> Compose <TX, TY, TZ>(Func <TX, TY> func1, Func <TY, TZ> func2) { var composition = new UnaryFunctionComposition <TX, TY, TZ>(func1, func2); return(composition.Evaluate); }
/// <summary> /// /// </summary> /// <typeparam name="X"></typeparam> /// <typeparam name="Y"></typeparam> /// <typeparam name="Z"></typeparam> /// <param name="func1"></param> /// <param name="func2"></param> /// <returns></returns> public static Func <X, Z> Compose <X, Y, Z>(Func <X, Y> func1, Func <Y, Z> func2) { var composition = new UnaryFunctionComposition <X, Y, Z>(func1, func2); return(composition.Evaluate); }