Amazon Wish List News RSS feed. Development Blog Browse the Forums  
  Overview - Downloads - Examples - News Feed - Contact Info -

Enum Converter Example

Some times you have a string field in your files that can be better handled if you map it like an enum.

In this version and thanks to Derek Fluker you can automatic use an enum with out define any converter, the FileHelpers automaticly parse the field and compare (case insensitive) to the enum values and assign the correct one.

The customer file is an excelent sample:

The enum is:

Later define your record class:

Done !! you can actually parse the file with.

See also

Must Read - Quick Start Guide - Attributes List - F.A.Q. - Examples of Use - Contacts & Credits - Donations

© 2005-07 to Marcos Meli

FileHelpers on SourceForge
Browse the Forums Development Blog
Support the project
Devoo Software
Powered by:

Source Forge Thanks Jetbrains for support us !! Thanks BB Software for support us !! TestDriven.NET Code Coverage by Clover.NET Code Project Article Larkware News Sharp Toolbox