Table of Contents

Class TypeParser

Namespace
Dynamicweb.Core.Helpers
Assembly
Dynamicweb.Core.dll

Parse string value to typed value

public static class TypeParser
Inheritance
TypeParser
Inherited Members

Methods

CanParse(string)

Determines whether string value can convert to the specified type.

public static bool CanParse(string type)

Parameters

type string

Type of the value.

Returns

bool

Parse(string, string)

Parse string value to typed value.

public static object Parse(string type, string value)

Parameters

type string

Type of the value.

value string

Value.

Returns

object

System.Object.

Parse<TValue>(string?)

Parses string value to typed value.

public static TValue? Parse<TValue>(string? value)

Parameters

value string

The value to parse.

Returns

TValue

The value converted to the TValue or the default value of the TValue type.

Type Parameters

TValue

The type of the result value.

To top