 | BcfSequenceFromValueFuncT Method |
Creates a simple sequence based on specified
FuncTResult. The returned sequence inherits
BcfValueConstraintT
which implements
IBcfSequenceT interface for T and T?; so it is usable for nullable and not nullable value type columns.
Namespace:
CalculationWorks.BusinessModel
Assembly:
CalculationWorks.BusinessModel (in CalculationWorks.BusinessModel.dll) Version: 4.2.0
Syntaxpublic static BcfValueSequenceBase<T> FromValueFunc<T>(
Func<T> next
)
where T : struct, new()
Public Shared Function FromValueFunc(Of T As {Structure, New}) (
next As Func(Of T)
) As BcfValueSequenceBase(Of T)Parameters
- next
- Type: SystemFuncT
The function creating the values; e.g. ()=>Guid.NewGuid().
Type Parameters
- T
- The column value type.
Return Value
Type:
BcfValueSequenceBaseTA simple sequence based on specified
FuncTResult.
Exceptions
ExamplesBcfValueSequenceBase<Guid> mySequence = BcfSequence.FromValueFunc(() => Guid.NewGuid())
See Also