dotnet / dotnet/wpf

VisualCollection.RemoveAt breaks when multiple null entries exist

Open
#6,297 2 comments 3 reactions 2 assignees Claimed by @pchaurasia14 View on GitHub
Investigate
Dominant language
C#
Stars
7.7k
Forks
1.3k
Avg merge
1d 11h
Merged PRs (30d)
61

Description

RemoveAt takes the entry at the specified index and delegates to RemoveInternal with that item. However, if there are multiple `null` entries in the collection, RemoveInternal then only removes the first, not the one at the requested index.

This likely necessitates inlining part of what RemoveInternal does into RemoveAt, since those two approaches are a bit incompatible with each other.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.