Skip to content

Bug: Crash in AdvancedCollectionView if elements of different types with a common base class are added to the source #78

@lhak

Description

@lhak

Using a List<BaseClass> as the source for an AdvancedCollectionView and adding elements of different types (derived from BaseClass) will lead to a crash in the Compare() function as it only uses the type of the first element to be compared.

I modified the code to use the type returned by GetGenericArguments() if the source is a generic type (e.g. List<>). I can submit a PR if wanted.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions