Table of Contents

Class CakeArgumentsExtensions

Namespace
Cake.Frosting.PleOps.Recipe
Assembly
Cake.Frosting.PleOps.Recipe.dll

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 ICakeArguments

Cake argument handler.

argName string

Argument 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 ICakeArguments

Cake argument handler.

argName string

Argument name.

setter Action<string>

Setter to run.