- Namespace
- Statiq
.Common - Base Types
-
- object
graph BT
Type-->Base0["object"]
Type["TypeHelper"]
class Type type-node
Syntax
public static class TypeHelper
Methods
Name | Return Value | Summary |
---|---|---|
Convert |
T |
Converts the provided value to the specified type. This method never throws an exception.
It will return the specified default value if the value cannot be converted to T.
static
|
Convert |
T |
Converts the provided value to the specified type. This method never throws an exception.
It will return default(T) if the value cannot be converted to T.
static
|
ExpandKeyValuePair |
KeyValuePair |
This resolves the value by recursively expanding
IMetadataValue .
static
|
ExpandValue |
object |
This resolves the value by recursively expanding
IMetadataValue .
static
|
Register |
void |
Registers a type converter at runtime.
static
|
Register |
void |
Registers a type converter at runtime.
static
|
Register |
void |
Registers a type converter at runtime.
static
|
Register |
void |
Registers a type converter at runtime.
static
|
Register |
void |
Registers a type converter at runtime.
static
|
TryConvert |
bool |
Tries to convert the provided value to the specified type.
static
|
TryConvert |
bool |
Trys to convert the provided value to the specified type.
static
|
TryExpandAndConvert |
bool |
Tries to convert the provided value to the specified type while recursively expanding
IMetadataValue .
static
|