Show / Hide Table of Contents

Class ToolSettingsExtensions

Extension methods for tool execution configuration.

Inheritance
object
ToolSettingsExtensions
Inherited Members
object.Equals(object)
object.Equals(object, object)
object.GetHashCode()
object.GetType()
object.MemberwiseClone()
object.ReferenceEquals(object, object)
object.ToString()
Namespace: Hexagrams.Nuke.Components
Assembly: Hexagrams.Nuke.Components.dll
Syntax
public static class ToolSettingsExtensions

Methods

| Edit this page View Source

WhenNotNull<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.

  • Edit this page
  • View Source
In this article
Back to top Generated by DocFX