"Type information" when exporting or converting to CSV

This topic contains 2 replies, has 3 voices, and was last updated by Profile photo of Don Jones Don Jones 3 weeks, 6 days ago.

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #52361
    Profile photo of Tim Curwick
    Tim Curwick
    Participant

    By default, Export-CSV and ConvertTo-CSV prepend type information to the result. "Information" in this case meaning just the name.

    Is this useful for anything? Does anyone use it? Does anyone intentionally not use -NoTypeInformation ?

    #52365
    Profile photo of Dave Wyatt
    Dave Wyatt
    Moderator

    When you import a CSV with type information, it gets injected into PSTypeNames. That's about it. I don't use it.

    #52372
    Profile photo of Don Jones
    Don Jones
    Keymaster

    What Dave said. It's mainly used for deserialization, to provide a more consistent pipeline behavior. There's some ETS tie-in as well, although I don't think I've ever seen an example of that being actually practical or beneficial.

Viewing 3 posts - 1 through 3 (of 3 total)

You must be logged in to reply to this topic.