Click or drag to resize

BcfReadOnlyArrayListExtensionsLastOrDefaultTSource Method (BcfReadOnlyArrayListTSource)

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

Returns the last element of a sequence, or a default value if the sequence contains no elements.

Namespace:  System.Linq
Assembly:  CalculationWorks.BusinessModel (in CalculationWorks.BusinessModel.dll) Version: 4.0.0-beta7
Syntax
public static TSource LastOrDefault<TSource>(
	this BcfReadOnlyArrayList<TSource> source
)

Parameters

source
Type: CalculationWorks.BusinessModelBcfReadOnlyArrayListTSource
The source.

Type Parameters

TSource
The type of the elements of source.

Return Value

Type: TSource
The last element of a sequence, or a default value if the sequence contains no elements.

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