Table of Contents

Interface IStringConverter

Namespace
Loehnert.Lisrt.Modules.Configuration
Assembly
Loehnert.Lisrt.Modules.dll

Interface for a converter from and to string.

public interface IStringConverter
Extension Methods

Methods

ConvertToObject(string, Type)

Convert string to a given object.

object ConvertToObject(string value, Type type)

Parameters

value string

Value as string.

type Type

Target type to convert.

Returns

object

An object with the given value and Type.

ConvertToString(object)

Convert the value of an object to string.

string ConvertToString(object value)

Parameters

value object

Any object with value.

Returns

string

string representing the value.