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
Public Shared Function LastValidBar ( 
	bars As RList(Of BarData)
) As BarData
Visual C++
public:
static BarData^ LastValidBar(
	RList<BarData^>^ bars
)
F#
static member LastValidBar : 
        bars : RList<BarData> -> BarData 

Parameters

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

Return Value

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

See Also