Terraria
v1.4.4.9
Terraria source code documentation
Loading...
Searching...
No Matches
TreeSet.cs
Go to the documentation of this file.
1
using
System.Runtime.CompilerServices
;
2
using
System.Runtime.Serialization
;
3
4
namespace
System.Collections.Generic
;
5
6
[
Serializable
]
7
[
TypeForwardedFrom
(
"System, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"
)]
8
public
sealed
class
TreeSet
<T> :
SortedSet
<T>
9
{
10
public
TreeSet
()
11
{
12
}
13
14
public
TreeSet
(
IComparer<T>
?
comparer
)
15
:
base
(
comparer
)
16
{
17
}
18
19
internal
TreeSet
(
TreeSet<T>
set
,
IComparer<T>
comparer
)
20
:
base
((
IEnumerable
<T>)
set
,
comparer
)
21
{
22
}
23
24
private
TreeSet
(
SerializationInfo
siInfo
,
StreamingContext
context)
25
:
base
(
siInfo
, context)
26
{
27
}
28
29
internal
override
bool
AddIfNotPresent
(T
item
)
30
{
31
bool
flag =
base
.AddIfNotPresent(
item
);
32
if
(!flag)
33
{
34
throw
new
ArgumentException
(
System
.
SR
.
Format
(
System
.
SR
.
Argument_AddingDuplicate
,
item
));
35
}
36
return
flag;
37
}
38
}
System.ArgumentException
Definition
ArgumentException.cs:9
System.Collections.Generic.Dictionary
Definition
Dictionary.cs:14
System.Collections.Generic.SortedSet.siInfo
SerializationInfo siInfo
Definition
SortedSet.cs:691
System.Collections.Generic.SortedSet.comparer
IComparer< T > comparer
Definition
SortedSet.cs:685
System.Collections.Generic.SortedSet
Definition
SortedSet.cs:13
System.Collections.Generic.TreeSet.TreeSet
TreeSet()
Definition
TreeSet.cs:10
System.Collections.Generic.TreeSet.TreeSet
TreeSet(SerializationInfo siInfo, StreamingContext context)
Definition
TreeSet.cs:24
System.Collections.Generic.TreeSet.TreeSet
TreeSet(TreeSet< T > set, IComparer< T > comparer)
Definition
TreeSet.cs:19
System.Collections.Generic.TreeSet.AddIfNotPresent
override bool AddIfNotPresent(T item)
Definition
TreeSet.cs:29
System.Collections.Generic.TreeSet.TreeSet
TreeSet(IComparer< T >? comparer)
Definition
TreeSet.cs:14
System.Collections.Generic.TreeSet
Definition
TreeSet.cs:9
System.Runtime.Serialization.SerializationInfo
Definition
SerializationInfo.cs:7
System.SR.Format
static string Format(string resourceFormat, object p1)
Definition
SR.cs:118
System.SR.Argument_AddingDuplicate
static string Argument_AddingDuplicate
Definition
SR.cs:14
System.SR
Definition
SR.cs:7
System.Collections.Generic.IEnumerable
Definition
IEnumerable.cs:4
System.Collections.Generic
Definition
IHashKeyCollection.cs:1
System.Data.IsolationLevel.Serializable
@ Serializable
System.Runtime.CompilerServices
Definition
NullablePublicOnlyAttribute.cs:3
System.Runtime.Serialization.CollectionKind.Dictionary
@ Dictionary
System.Runtime.Serialization
Definition
SerializationGuard.cs:3
System.ExceptionArgument.item
@ item
System
Definition
BlockingCollection.cs:8
System.Runtime.Serialization.StreamingContext
Definition
StreamingContext.cs:6
source
System.Collections
System.Collections.Generic
TreeSet.cs
Generated by
1.10.0