Click or drag to resize

BcfReadOnlyArrayListExtensionsElementAtOrDefaultTSource Method

Returns the element at a specified index in a sequence or a default value if the index is out of range.

Namespace:  System.Linq
Assembly:  CalculationWorks.BusinessModel (in CalculationWorks.BusinessModel.dll) Version: 4.2.0
Syntax
public static TSource ElementAtOrDefault<TSource>(
	this BcfReadOnlyArrayList<TSource> source,
	int index
)

Parameters

source
Type: CalculationWorks.BusinessModelBcfReadOnlyArrayListTSource
The source.
index
Type: SystemInt32
The zero-based index of the element to retrieve.

Type Parameters

TSource
The type of the elements of source.

Return Value

Type: TSource
The element at a specified index in a sequence or a default value if the index is out of range.

Usage Note

In Visual Basic and C#, you can call this method as an instance method on any object of type BcfReadOnlyArrayListTSource. When you use instance method syntax to call this method, omit the first parameter. For more information, see Extension Methods (Visual Basic) or Extension Methods (C# Programming Guide).
See Also