CsvColumnAttributeFormatString Property |
Gets or sets the format string that is to be used when parsing the column value.
De following format strings are supported:
- XXX - Serialize the property according to the format. I.e.: '000' in combination with integer value 7 results in "007".
- [prefix]{0:XXX}[postfix] - Serialize the property according to the format. I.e.: 'a{0:000}b' in combination with integer value 7 results in "a007b".
- X or -X (String properties only) - Serialize the property according to the format. I.e.: '-5' in combination with string value 'abc' results in "abc ".
- [prefix]{0,X}[postfix] or [prefix]{0,-X}[postfix] (String properties only) - Serialize the property according to the format. I.e.: 'y{0,-5}z' in combination with string value 'abc' results in "yabc z".
- true:[true string]|false:[false string] (Boolean properties only) - Serialize the property according to the format. I.e.: 'true:Y|false:N' in combination with boolean value 'True' results in "Y".
Namespace:
Enkoni.Framework.Serialization
Assembly:
Enkoni.Framework.Serialization (in Enkoni.Framework.Serialization.dll) Version: 1.3.0.1
Syntaxpublic string FormatString { get; set; }
Public Property FormatString As String
Get
Set
public:
property String^ FormatString {
String^ get ();
void set (String^ value);
}
member FormatString : string with get, set
Property Value
Type:
String
See Also