LinkedList<T>.Last Property
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Gets the last node of the LinkedList<T>.
public:
property System::Collections::Generic::LinkedListNode<T> ^ Last { System::Collections::Generic::LinkedListNode<T> ^ get(); };
public System.Collections.Generic.LinkedListNode<T> Last { get; }
public System.Collections.Generic.LinkedListNode<T>? Last { get; }
member this.Last : System.Collections.Generic.LinkedListNode<'T>
Public ReadOnly Property Last As LinkedListNode(Of T)
Property Value
The last LinkedListNode<T> of the LinkedList<T>.
Examples
For an example that includes this property, see the LinkedList<T> class.
Remarks
LinkedList<T> accepts null
as a valid Value for reference types and allows duplicate values.
If the LinkedList<T> is empty, the First and Last properties contain null
.
Retrieving the value of this property is an O(1) operation.
Applies to
GitHub에서 Microsoft와 공동 작업
이 콘텐츠의 원본은 GitHub에서 찾을 수 있으며, 여기서 문제와 끌어오기 요청을 만들고 검토할 수도 있습니다. 자세한 내용은 참여자 가이드를 참조하세요.
.NET