BuildMaster SDK Reference
Version:

Util Class

A collection of static utility methods.

Inheritance Hierarchy

  • object
    • Inedo.BuildMaster.Util

Syntax

public class Util

Methods

Name Description
Coalesce<T1, T2>(T1 arg1, T2 arg2)
CoalesceStr<T1, T2>(T1 arg1, T2 arg2)
ConcatN(object[] args)

Returns String.Empty when one of the arguments is null (Nothing in Visual Basic) or DBNull.Value; otherwise, returns a concatenation of the arguments.

ConcatNE(object[] args)

Returns String.Empty when one of the arguments is null (Nothing in Visual Basic), DBNull.Value, or String.Empty; otherwise, returns a concatenation of the arguments.

NullIf(string a, string b)

Returns a null (Nothing in Visual Basic) reference if the two specified parameters are equal (or if either are null (Nothing in Visual Basic)); otherwise, returns the first parameter.

NullIf<T>(T? a, T? b)

Returns a null (Nothing in Visual Basic) reference if the two specified parameters are equal (or if either are null (Nothing in Visual Basic)); otherwise, returns the first parameter.

NullIf<T>(T a, T? b)

Returns a null (Nothing in Visual Basic) reference if the two specified parameters are equal (or if either are null (Nothing in Visual Basic)); otherwise, returns the first parameter.