5 references to IsCompatibleObject
System.Collections.Immutable (5)
System\Collections\Immutable\ImmutableList_1.Builder.cs (3)
1053
if (
IsCompatibleObject
(value))
1070
if (
IsCompatibleObject
(value))
1113
if (
IsCompatibleObject
(value))
System\Collections\Immutable\ImmutableList_1.cs (2)
1021
bool IList.Contains(object? value) =>
IsCompatibleObject
(value) && this.Contains((T)value!);
1030
int IList.IndexOf(object? value) =>
IsCompatibleObject
(value) ? this.IndexOf((T)value!) : -1;