Class TypeParser
- Namespace
- Dynamicweb.Core.Helpers
- Assembly
- Dynamicweb.Core.dll
Parse string value to typed value
- Inheritance
-
Type
Parser
- Inherited Members
Methods
CanParse(string)
Determines whether string value can convert to the specified type.
Parameters
type
stringType of the value.
Returns
Parse(string, string)
Parse string value to typed value.
Parameters
Returns
- object
System.Object.
Parse<TValue>(string?)
Parses string value to typed value.
Parameters
value
stringThe 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.