C# 0 The Complete Reference



Download 4,07 Mb.
Pdf ko'rish
bet972/1096
Sana23.01.2022
Hajmi4,07 Mb.
#402171
1   ...   968   969   970   971   972   973   974   975   ...   1096
Bog'liq
C-Sharp 3 The Complete Reference Herbert Schildt

LinkedList

The


LinkedList

 class implements a generic doubly linked list. It implements 



ICollection

,

ICollection

,

IEnumerable

,

IEnumerable

,

ISerializable

, and 


IDeserializationCallback

. (The last two interfaces support the serialization of the list.) 



LinkedList

 defines two public constructors, shown here:

public LinkedList( )

public LinkedList(IEnumerable 



c

)

The first creates an empty linked list. The second creates a list initialized with the elements in 



c.

Like most linked list implementations, 



LinkedList

 encapsulates the values stored in 

the list in 

nodes

 that contain links to the previous and next elements in the list. These nodes 

are objects of type 

LinkedListNode

.

LinkedListNode

 provides the four properties 

shown here:

public LinkedListNode Next { get; }

public LinkedListNode Previous { get; }

public LinkedList List { get; }

public T Value { get; set; }



Next

 and 


Previous

 obtain a reference to the next or previous node in the list, respectively. 

You can use these properties to traverse the list in either direction. A null reference is 

returned if no next or previous node exists. You can obtain a reference to the list itself via 




Download 4,07 Mb.

Do'stlaringiz bilan baham:
1   ...   968   969   970   971   972   973   974   975   ...   1096




Ma'lumotlar bazasi mualliflik huquqi bilan himoyalangan ©hozir.org 2024
ma'muriyatiga murojaat qiling

kiriting | ro'yxatdan o'tish
    Bosh sahifa
юртда тантана
Боғда битган
Бугун юртда
Эшитганлар жилманглар
Эшитмадим деманглар
битган бодомлар
Yangiariq tumani
qitish marakazi
Raqamli texnologiyalar
ilishida muhokamadan
tasdiqqa tavsiya
tavsiya etilgan
iqtisodiyot kafedrasi
steiermarkischen landesregierung
asarlaringizni yuboring
o'zingizning asarlaringizni
Iltimos faqat
faqat o'zingizning
steierm rkischen
landesregierung fachabteilung
rkischen landesregierung
hamshira loyihasi
loyihasi mavsum
faolyatining oqibatlari
asosiy adabiyotlar
fakulteti ahborot
ahborot havfsizligi
havfsizligi kafedrasi
fanidan bo’yicha
fakulteti iqtisodiyot
boshqaruv fakulteti
chiqarishda boshqaruv
ishlab chiqarishda
iqtisodiyot fakultet
multiservis tarmoqlari
fanidan asosiy
Uzbek fanidan
mavzulari potok
asosidagi multiservis
'aliyyil a'ziym
billahil 'aliyyil
illaa billahil
quvvata illaa
falah' deganida
Kompyuter savodxonligi
bo’yicha mustaqil
'alal falah'
Hayya 'alal
'alas soloh
Hayya 'alas
mavsum boyicha


yuklab olish