![Collapse image](collapse_all.gif)
![Expand Image](expand_all.gif)
![CollapseAll image](collall.gif)
![ExpandAll image](expall.gif)
![DropDown image](drpdown.gif)
![DropDownHover image](drpdown_orange.gif)
![Copy image](copycode.gif)
![CopyHover image](copycodeHighlight.gif)
[This topic is pre-release documentation and is subject to change in future releases. Blank topics are included as placeholders.]
Returns the first item in this view: the item
that would appear first if the view was enumerated.
Namespace: Wintellect.PowerCollections
Assembly:
PowerCollections (in PowerCollections.dll)
Syntax
C# |
---|
public T GetFirst() |
Visual Basic (Declaration) |
---|
Public Function GetFirst As T |
Visual C++ |
---|
public: T GetFirst () |
Return Value
The first item in the view.
Remarks
GetFirst() takes time O(log N), where N is the number of items in the set.
Exceptions
Exception | Condition |
---|---|
System..::InvalidOperationException | The view has no items in it. |
See Also
Wintellect.PowerCollections Namespace