Class CakeArgumentsExtensions
Extension methods for ICakeArguments class.
public static class CakeArgumentsExtensions
- Inheritance
-
CakeArgumentsExtensions
- Inherited Members
Methods
SetIfPresent(ICakeArguments, string, Action<bool>)
Run the setter if the argument name is present.
public static void SetIfPresent(this ICakeArguments handler, string argName, Action<bool> setter)
Parameters
handler
ICakeArgumentsCake argument handler.
argName
stringArgument name.
setter
Action<bool>Setter to run.
SetIfPresent(ICakeArguments, string, Action<string>)
Run the setter if the argument name is present.
public static void SetIfPresent(this ICakeArguments handler, string argName, Action<string> setter)
Parameters
handler
ICakeArgumentsCake argument handler.
argName
stringArgument name.
setter
Action<string>Setter to run.