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