Retrieves the last non-empty bar in a list of bars.

Namespace:  RightEdge.Common
Assembly:  Common (in Common.dll) Version: 2010.1.0.0 (2010.1.0.0)

Syntax

C#
public static BarData LastValidBar(
	RList<BarData> bars
)
Visual Basic (Declaration)
Public Shared Function LastValidBar ( _
	bars As RList(Of BarData) _
) As BarData
Visual C++
public:
static BarData^ LastValidBar(
	RList<BarData^>^ bars
)

Parameters

bars
Type: RightEdge.Common..::.RList<(Of <(BarData>)>)
A list of bars.

Return Value

The last non-empty bar in bars. If there are no non-empty bars in the list, returns null.

See Also