Terraria v1.4.4.9
Terraria source code documentation
Loading...
Searching...
No Matches

◆ AddIfNotExist()

bool System.Diagnostics.DiagLinkedList< T >.AddIfNotExist ( T value,
Func< T, T, bool > compare )
inline

Definition at line 61 of file DiagLinkedList.cs.

62 {
63 lock (this)
64 {
65 for (DiagNode<T> diagNode = _first; diagNode != null; diagNode = diagNode.Next)
66 {
67 if (compare(value, diagNode.Value))
68 {
69 return false;
70 }
71 }
74 return true;
75 }
76 }
void UnsafeAdd(DiagNode< T > newNode)

References System.Diagnostics.DiagLinkedList< T >._first, System.Diagnostics.DiagLinkedList< T >.UnsafeAdd(), and System.value.