C# Class FluentFiles.Converters.StringConverter

Converts values that are already strings.
Inheritance: IFieldValueConverter
Mostrar archivo Open project: mthamil/FluentFiles

Public Methods

Method Description
CanFormat ( Type from ) : bool

Whether a value of a given type can be converted to a string.

CanParse ( Type to ) : bool

Whether a value of a given type can be converted from a string.

Parse ( ) : object

Converts a ReadOnlySpan{Char}s to a string.

Method Details

CanFormat() public method

Whether a value of a given type can be converted to a string.
public CanFormat ( Type from ) : bool
from Type The type to convert from.
return bool

CanParse() public method

Whether a value of a given type can be converted from a string.
public CanParse ( Type to ) : bool
to Type The type to convert to.
return bool

Parse() public method

Converts a ReadOnlySpan{Char}s to a string.
public Parse ( ) : object
return object