Terraria
v1.4.4.9
Terraria source code documentation
Loading...
Searching...
No Matches
◆
SequenceEqual< TDerived, TBase >()
[3/3]
static
bool
System.Linq.ImmutableArrayExtensions.SequenceEqual<
TDerived
,
TBase
>
(
this
ImmutableArray
<
TBase
>
immutableArray
,
ImmutableArray
<
TDerived
>
items
,
IEqualityComparer
<
TBase
>?
comparer
=
null
)
inline
static
Type Constraints
TDerived
:
TBase
Definition at line
69
of file
ImmutableArrayExtensions.cs
.
69
:
TBase
70
{
71
immutableArray
.ThrowNullRefIfNotInitialized();
72
items.ThrowNullRefIfNotInitialized();
73
if
(
immutableArray
.array == items.array)
74
{
75
return
true
;
76
}
77
if
(
immutableArray
.Length != items.Length)
78
{
79
return
false
;
80
}
81
if
(
comparer
==
null
)
82
{
83
comparer
=
EqualityComparer<TBase>
.Default;
84
}
85
for
(
int
i = 0;
i
<
immutableArray
.Length;
i
++)
86
{
87
if
(!
comparer
.Equals(
immutableArray
.array[i], (
TBase
)(
object
)items.array[i]))
88
{
89
return
false
;
90
}
91
}
92
return
true
;
93
}
System.Collections.Generic.Dictionary
Definition
Dictionary.cs:14
System.Text.RegularExpressions.ExceptionArgument.i
@ i
System.ExceptionArgument.comparer
@ comparer
References
System.comparer
.
System
Linq
ImmutableArrayExtensions
Generated by
1.10.0