ParsableStringConverter<T> Class

A type converters that uses the IParsable<TSelf> interface to convert strings to instances of a type.

If the type also implements IFormattable, it is used to perform the opposite conversion.

This type is not available in the netstandard and .NET Framework builds of Louis, because their BCL has no IParsable<TSelf>.

public class ParsableStringConverter<T> : SimpleStringConverter<T> where T : IParsable<T>

Type parameters

T
The type to convert.
Inheritance
SimpleStringConverter<T> ParsableStringConverter<T>

Constructors

NameDescription
ParsableStringConverter()Initializes a new instance of the ParsableStringConverter<T> class.

ParsableStringConverter()

Available in: net10.0net11.0(not available in the other target frameworks of the package)

Initializes a new instance of the ParsableStringConverter<T> class.

public ParsableStringConverter()