Class ToolSettingsExtensions
Extension methods for tool execution configuration.
Inherited Members
Namespace: Hexagrams.Nuke.Components
Assembly: Hexagrams.Nuke.Components.dll
Syntax
public static class ToolSettingsExtensions
Methods
| Edit this page View SourceWhenNotNull<T, TObject>(T, TObject, Func<T, TObject, T>)
Invokes the specified configuration when the subject is not null.
Declaration
public static T WhenNotNull<T, TObject>(this T settings, TObject obj, Func<T, TObject, T> configurator)
Parameters
| Type | Name | Description |
|---|---|---|
| T | settings | The settings being configured. |
| TObject | obj | The object to check. |
| Func<T, TObject, T> | configurator | The configuration delegate. |
Returns
| Type | Description |
|---|---|
| T | The configuration object. |
Type Parameters
| Name | Description |
|---|---|
| T | The settings type. |
| TObject | The object type. |