Table of Contents

Class ConvertTo<TTo>

Namespace
LinqToDB.Common
Assembly
linq2db.dll

Value converter to TTo type.

public static class ConvertTo<TTo>

Type Parameters

TTo

Target conversion type.

Inheritance
ConvertTo<TTo>

Methods

From<TFrom>(TFrom)

Converts value from TFrom to TTo type.

public static TTo From<TFrom>(TFrom o)

Parameters

o TFrom

Value to convert.

Returns

TTo

Converted value.

Type Parameters

TFrom

Source conversion type.

Examples

ConvertTo<int>.From("123");