IStringConverter

Description

interface Tinman.Core.Formatting.IStringConverter<T>

Extended by

ITypeSerializerEx

Base interface for classes that convert between atomic values and strings.

Public / Methods

String­Read­Checked


public method StringReadChecked → (2)

value in : string

The string value or null.

hasValue out : bool

true if a value has been read from value in,
false if no value has been read.

returns → T

The read value.

Reads a value from the given string value.

String­Write


public method StringWrite → (1)

value in : T

The value to write.

returns → string

The written string value or null.

Writes the given value to a string value.

Extensions

String­Read


public static method StringRead → (2)<T>

value in : string

The string value or null.

defaultValue opt : T = default(T)

The default value to use if value in is invalid.

returns → T

The read value.

Reads a value from the given string value.