Click or drag to resize

BcfSequenceFromFuncT Method

[This is preliminary documentation and is subject to change.]

Namespace:  CalculationWorks.BusinessModel
Assembly:  CalculationWorks.BusinessModel (in CalculationWorks.BusinessModel.dll) Version: 4.0.0-beta7
Syntax
public static IBcfSequence<T> FromFunc<T>(
	Func<T> next
)

Parameters

next
Type: SystemFuncT
The function creating the values; e.g. ()=>Guid.NewGuid().

Type Parameters

T
The column value type.

Return Value

Type: IBcfSequenceT
A simple sequence based on specified FuncTResult.
Exceptions
ExceptionCondition
ArgumentNullExceptionnext is null.
Examples
Guid-Sequence
IBcfSequence<Guid> mySequence = BcfSequence.FromFunc(() => Guid.NewGuid())
See Also