Skip to content

Object must implement IConvertible error when I have array of string in class #12

@pankajv82

Description

@pankajv82

I am getting below error when my class has array of strings as a property.
"One or more errors occurred. (Object must implement IConvertible.)"

I also tried below but all lead to same error.
public IEnumerable Industry { get; set; }
public List Industry { get; set; }

class Company
{
public string[] Industry { get; set; }
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions