C# Class XSerializer.SimpleTypeValueConverter

Inheritance: IValueConverter
Show file Open project: QuickenLoans/XSerializer Class Usage Examples

Public Methods

Method Description
Create ( Type type, XSerializer.RedactAttribute redactAttribute ) : SimpleTypeValueConverter
GetString ( object value, ISerializeOptions options ) : string
ParseString ( string value, ISerializeOptions options ) : object

Private Methods

Method Description
GetNonRedactedGetParseStringFunc ( Type type ) : Func
GetNonRedactedGetStringFunc ( Type type ) : Func
GetRedactedGetParseStringFunc ( Type type ) : Func
GetRedactedGetStringFunc ( Type type, XSerializer.RedactAttribute redactAttribute ) : Func
GetStringFromBool ( object value, ISerializeOptions options ) : string
GetStringFromChar ( object value, ISerializeOptions options ) : string
GetStringFromDateTime ( object value, ISerializeOptions options ) : string
GetStringFromDateTimeOffset ( object value, ISerializeOptions options ) : string
GetStringFromNullableBool ( object value, ISerializeOptions options ) : string
GetStringFromNullableChar ( object value, ISerializeOptions options ) : string
GetStringFromNullableDateTime ( object value, ISerializeOptions options ) : string
GetStringFromNullableDateTimeOffset ( object value, ISerializeOptions options ) : string
GetStringFromNullableTimeSpan ( object value, ISerializeOptions options ) : string
GetStringFromTimeSpan ( object value, ISerializeOptions options ) : string
ParseStringForBool ( string value, ISerializeOptions options ) : object
ParseStringForChar ( string value, ISerializeOptions options ) : object
ParseStringForDateTime ( string value, ISerializeOptions options ) : object
ParseStringForDateTimeOffset ( string value, ISerializeOptions options ) : object
ParseStringForGuid ( string value, ISerializeOptions options ) : object
ParseStringForNullableBool ( string value, ISerializeOptions options ) : object
ParseStringForNullableChar ( string value, ISerializeOptions options ) : object
ParseStringForNullableDateTime ( string value, ISerializeOptions options ) : object
ParseStringForNullableDateTimeOffset ( string value, ISerializeOptions options ) : object
ParseStringForNullableGuid ( string value, ISerializeOptions options ) : object
ParseStringForNullableTimeSpan ( string value, ISerializeOptions options ) : object
ParseStringForTimeSpan ( string value, ISerializeOptions options ) : object
SimpleTypeValueConverter ( Type type, XSerializer.RedactAttribute redactAttribute ) : System

Method Details

Create() public static method

public static Create ( Type type, XSerializer.RedactAttribute redactAttribute ) : SimpleTypeValueConverter
type System.Type
redactAttribute XSerializer.RedactAttribute
return SimpleTypeValueConverter

GetString() public method

public GetString ( object value, ISerializeOptions options ) : string
value object
options ISerializeOptions
return string

ParseString() public method

public ParseString ( string value, ISerializeOptions options ) : object
value string
options ISerializeOptions
return object