Terraria v1.4.4.9
Terraria source code documentation
Loading...
Searching...
No Matches
LinkedListNode.cs
Go to the documentation of this file.
2
3public sealed class LinkedListNode<T>
4{
6
8
10
11 internal T item;
12
14
16 {
17 get
18 {
19 if (next != null && next != list.head)
20 {
21 return next;
22 }
23 return null;
24 }
25 }
26
28 {
29 get
30 {
31 if (prev != null && this != list.head)
32 {
33 return prev;
34 }
35 return null;
36 }
37 }
38
39 public T Value
40 {
41 get
42 {
43 return item;
44 }
45 set
46 {
47 item = value;
48 }
49 }
50
51 public ref T ValueRef => ref item;
52
54 {
55 item = value;
56 }
57
59 {
60 this.list = list;
61 item = value;
62 }
63
64 internal void Invalidate()
65 {
66 list = null;
67 next = null;
68 prev = null;
69 }
70}
LinkedListNode(LinkedList< T > list, T value)