7 references to SetForwardingFunction
dotnet (7)
Extensions\OptionForwardingExtensions.cs (7)
14public static ForwardedOption<T> Forward<T>(this ForwardedOption<T> option) => option.SetForwardingFunction((T? o) => [option.Name]); 28public static ForwardedOption<T> ForwardAs<T>(this ForwardedOption<T> option, string value) => option.SetForwardingFunction((T? o) => [value]); 38public static ForwardedOption<bool> ForwardIfEnabled(this ForwardedOption<bool> option, string value) => option.SetForwardingFunction((bool o) => o ? [value] : []); 45public static ForwardedOption<bool> ForwardIfEnabled(this ForwardedOption<bool> option, string[] value) => option.SetForwardingFunction((bool o) => o ? value : []); 56return option.SetForwardingFunction((string? o) => 84.SetForwardingFunction(propertyDict => ForwardedMSBuildPropertyValues(propertyDict, option.Name)); 96public static Option<T> ForwardAsMany<T>(this ForwardedOption<T> option, Func<T?, IEnumerable<string>> format) => option.SetForwardingFunction(format);