private static bool IsCompatibleObject(object? value) { return ((value is T) || (value == null && default(T) == null)); }
void IList.Remove(object value) { if (ReadOnlyCollectionBuilder <T> .IsCompatibleObject(value)) { this.Remove((T)value); } }