Skip to content

Unable to cast object of type 'HashSet' to type 'IList' #68

@peter-perot

Description

@peter-perot

Hi,

I have an object with a property of type 'HashSet'.

When I try to fill it, the following exception occurs:

Unable to cast object of type 'System.Collections.Generic.HashSet`1[System.String]' to type 'System.Collections.IList'.

In the source code a check is made against 'IEnumerable', and if true, a cast to 'IList' is made, which causes an exception.

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions