LinkedList.LinkedList(SerializationInfo, StreamingContext) Constructor

Initializes a new instance of the LinkedList class that is serializable with the specified SerializationInfo and StreamingContext.

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

protected LinkedList (
	SerializationInfo info,
	StreamingContext context
protected LinkedList (
	SerializationInfo info, 
	StreamingContext context
protected function LinkedList (
	info : SerializationInfo, 
	context : StreamingContext
Not applicable.



A System.Runtime.Serialization.SerializationInfo object containing the information required to serialize the LinkedList.


A System.Runtime.Serialization.StreamingContext object containing the source and destination of the serialized stream associated with the LinkedList.

LinkedList accepts a null reference (Nothing in Visual Basic) as a valid Value for reference types and allows duplicate values.

If the LinkedList is empty, the First and Last properties contain a null reference (Nothing in Visual Basic).

This constructor is an O(n) operation.

Windows 98, Windows Server 2000 SP4, Windows CE, Windows Millennium Edition, Windows Mobile for Pocket PC, Windows Mobile for Smartphone, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter Edition

The Microsoft .NET Framework 3.0 is supported on Windows Vista, Microsoft Windows XP SP2, and Windows Server 2003 SP1.

.NET Framework

Supported in: 3.0, 2.0

Community Additions