/// <summary>
 ///		Adds a new Function to the list of formatters
 /// </summary>
 public static MultiFormatterInfoCollection AddSingleGlobal(this IMorestachioFormatterService service, Delegate function, [CanBeNull] string name = null)
 {
     return(service.AddSingle(function, new MorestachioGlobalFormatterAttribute(name, "Autogenerated description")
     {
         OutputType = function.Method.ReturnType,
         ReturnHint = "None",
     }));
 }
 public static MultiFormatterInfoCollection AddSingle <T, T1, T2, T3, T4>(this IMorestachioFormatterService service, Func <T, T1, T2, T3, T4> function, [CanBeNull] string name = null)
 {
     return(service.AddSingle((Delegate)function, name));
 }
Example #3
0
 /// <summary>
 ///		Adds a new Function to the list of formatters
 /// </summary>
 public static MultiFormatterInfoCollection AddSingle <T, T1, T2>(this IMorestachioFormatterService service, Func <T, T1, T2> function, string name)
 {
     return(service.AddSingle((Delegate)function, name));
 }