Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

CsvInputFormatter only gets properties by index not name #208

Open
@matteus6007

Description

When setting the property value it selects the property by index:

properties[i].SetValue(item, Convert.ChangeType(values[i], properties[i].PropertyType), null);

If you have set UseSingleLineHeaderInCsv then it should get property by name item.GetProperty("propertyName"), this allows for the headers to be in a different order to how the properties are ordered.

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

        AltStyle によって変換されたページ (->オリジナル) /