BuildMaster SDK Reference
Version:

Interleave(System.Collections.Generic.IEnumerable<System.Web.UI.Control> controls, System.Func<System.Web.UI.Control> getSeparator) Method

Interleaves controls created from a factory method between each control in the sequence.

Syntax

public static IEnumerable<System.Web.UI.Control> Interleave(IEnumerable<System.Web.UI.Control> controls, Func<System.Web.UI.Control> getSeparator)

Parameters

controls
Type: System.Collections.Generic.IEnumerable<System.Web.UI.Control>

Controls to iterate.

getSeparator
Type: System.Func<System.Web.UI.Control>

Method which returns the separator control.

Returns

Interleaved control sequence.

Exceptions

System.ArgumentNullException

controls is null (Nothing in Visual Basic) or getSeparator is null (Nothing in Visual Basic).