LinkedListNode<'T> Class

 
System_CAPS_noteNote

The .NET API Reference documentation has a new home. Visit the .NET API Browser on docs.microsoft.com to see the new experience.

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

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

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

[<Sealed>]
[<ComVisibleAttribute(false)>]
type LinkedListNode<'T> = class end

Type Parameters

T

Specifies the element type of the linked list.

NameDescription
System_CAPS_pubmethodLinkedListNode<'T>('T)

Initializes a new instance of the LinkedListNode<'T> class, containing the specified value.

NameDescription
System_CAPS_pubpropertyList

Gets the LinkedList<'T> that the LinkedListNode<'T> belongs to.

System_CAPS_pubpropertyNext

Gets the next node in the LinkedList<'T>.

System_CAPS_pubpropertyPrevious

Gets the previous node in the LinkedList<'T>.

System_CAPS_pubpropertyValue

Gets the value contained in the node.

NameDescription
System_CAPS_pubmethodEquals(Object)

Determines whether the specified object is equal to the current object.(Inherited from Object.)

System_CAPS_pubmethodGetHashCode()

Serves as the default hash function. (Inherited from Object.)

System_CAPS_pubmethodGetType()

Gets the Type of the current instance.(Inherited from Object.)

System_CAPS_pubmethodToString()

Returns a string that represents the current object.(Inherited from Object.)

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.

The following code example creates a LinkedListNode<'T>, adds it to a LinkedList<'T>, and tracks the values of its properties as the LinkedList<'T> changes.

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

Universal Windows Platform
Available since 8
.NET Framework
Available since 2.0
Portable Class Library
Supported in: portable .NET platforms
Silverlight
Available since 2.0
Windows Phone Silverlight
Available since 7.0
Windows Phone
Available since 8.1

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

Return to top
Show: