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

Arguments for the Default Converters of the library.

Here is a list of the parameters that you can give to the default converters:

All the parameters must be string (because object parameters don't work in VB.NET)

ConverterKind.Date

Arg1: A string he DateTime format that the engine pass to the DateTime.Parse function.

Examples:

You can check all the supported format strings check the MSDN docs for DateTime.ParseExact (link soon hahah, some googling don't hurt)

ConverterKind.Double, ConverterKind.Single and ConverterKind.Decimal

Arg1: A string with the char used as DecimalSeparator. Valid Values: "." or ",". By default: "."

Examples:

Integer Converters

ConverterKind.Int16, ConverterKind.Int32, ConverterKind.Int64, ConverterKind.Byte,
ConverterKind.UInt16, ConverterKind.UInt32, ConverterKind.UInt64, and ConverterKind.SByte

Arg1: A string with the char used as DecimalSeparator. Valid Values: "." or ",". By default: "."

WARNING: The library request a Decimal Separator here and internally creates the Group Separator with the conterpart (for example if you provide "." uses ",")

Examples:

ConverterKind.Boolean

Arg1: A string thats represents the True value
Arg2: A string thats represents the False value

By default this converters takes as true the strings "True" (case insensitive) and "1". And writes the string "True" and "False" when converting the field to string.

Examples:

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