Terraria
v1.4.4.9
Terraria source code documentation
Loading...
Searching...
No Matches
◆
this[object key]
virtual ? object System.Collections.SortedList.this[object
key
]
get
set
Implements
System.Collections.IDictionary
.
Definition at line
622
of file
SortedList.cs
.
623
{
624
get
625
{
626
int
num =
IndexOfKey
(
key
);
627
if
(num >= 0)
628
{
629
return
values
[num];
630
}
631
return
null
;
632
}
633
set
634
{
635
if
(
key
==
null
)
636
{
637
throw
new
ArgumentNullException(
"key"
,
System
.
SR
.
ArgumentNull_Key
);
638
}
639
int
num =
Array
.BinarySearch(
keys
, 0,
_size
,
key
,
comparer
);
640
if
(num >= 0)
641
{
642
values
[num] =
value
;
643
version
++;
644
}
645
else
646
{
647
Insert
(~num,
key
,
value
);
648
}
649
}
650
}
System.Collections.SortedList._size
int _size
Definition
SortedList.cs:562
System.Collections.SortedList.keys
object[] keys
Definition
SortedList.cs:558
System.Collections.SortedList.IndexOfKey
virtual int IndexOfKey(object key)
Definition
SortedList.cs:851
System.Collections.SortedList.values
object[] values
Definition
SortedList.cs:560
System.Collections.SortedList.comparer
IComparer comparer
Definition
SortedList.cs:566
System.Collections.SortedList.version
int version
Definition
SortedList.cs:564
System.SR.ArgumentNull_Key
static string ArgumentNull_Key
Definition
SR.cs:28
System.SR
Definition
SR.cs:7
System.Reflection.CustomAttributeEncoding.Array
@ Array
System.ExceptionArgument.value
@ value
System.ExceptionArgument.key
@ key
System.ConsoleKey.Insert
@ Insert
System
Definition
BlockingCollection.cs:8
System
Collections
SortedList
Generated by
1.10.0