LinkedListNode(T) Class
TOC
Collapse the table of content
Expand the table of content

LinkedListNode<T> Class

[ This article is for Windows Phone 8 developers. If you’re developing for Windows 10, see the latest documentation. ]

Represents a node in a LinkedList<T>. This class cannot be inherited.

System::Object
  System.Collections.Generic::LinkedListNode<T>

Namespace:  System.Collections.Generic
Assembly:  System (in System.dll)

No code example is currently available or this language may not be supported.

Type Parameters

T

Specifies the element type of the linked list.

The LinkedListNode<T> type exposes the following members.

  NameDescription
Public methodLinkedListNode<T>Initializes a new instance of the LinkedListNode<T> class, containing the specified value.
Top

  NameDescription
Public propertyListGets the LinkedList<T> that the LinkedListNode<T> belongs to.
Public propertyNextGets the next node in the LinkedList<T>.
Public propertyPreviousGets the previous node in the LinkedList<T>.
Public propertyValueGets the value contained in the node.
Top

  NameDescription
Public methodEquals(Object)Determines whether the specified Object is equal to the current Object. (Inherited from Object.)
Protected methodFinalizeAllows an object to try to free resources and perform other cleanup operations before the Object is reclaimed by garbage collection. (Inherited from Object.)
Public methodGetHashCodeServes as a hash function for a particular type. (Inherited from Object.)
Public methodGetTypeGets the Type of the current instance. (Inherited from Object.)
Protected methodMemberwiseCloneCreates a shallow copy of the current Object. (Inherited from Object.)
Public methodToStringReturns a string that represents the current object. (Inherited from Object.)
Top

Each element of the LinkedList<T> collection is a LinkedListNode<T>. The LinkedListNode<T> contains a value, a reference to the LinkedList<T> that it belongs to, a reference to the next node, and a reference to the previous node.

Windows Phone OS

Supported in: 8.1, 8.0, 7.1, 7.0

Windows Phone

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

Show:
© 2017 Microsoft