C# Class Banking.AU.Common.Converters.EnumConverter

Uses FileRepresentation attribute on enum values to encode/decode. If not present it uses the enum value.ToString().
Inheritance: FileHelpers.ConverterBase
ファイルを表示 Open project: stuarta0/banking-au Class Usage Examples

Public Methods

Method Description
EnumConverter ( Type enumType ) : System
FieldToString ( object from ) : string
StringToField ( string from ) : object

Method Details

EnumConverter() public method

public EnumConverter ( Type enumType ) : System
enumType System.Type
return System

FieldToString() public method

public FieldToString ( object from ) : string
from object
return string

StringToField() public method

public StringToField ( string from ) : object
from string
return object