Class TypeConversion
Denotes a helper class for type conversion
Inherited Members
Namespace: NMF.Serialization
Assembly: NMF.Serialization.dll
Syntax
public static class TypeConversion
Methods
| Edit this page View SourceGetTypeConverter(Type)
Gets a type converter for the given type
Declaration
public static TypeConverter GetTypeConverter(Type type)
Parameters
Type | Name | Description |
---|---|---|
Type | type | The type for which a converter is needed |
Returns
Type | Description |
---|---|
TypeConverter | The type converter |
ParseJson(string)
Parses the given string as JSON
Declaration
public static IDictionary<string, string> ParseJson(string json)
Parameters
Type | Name | Description |
---|---|---|
string | json | A JSON string |
Returns
Type | Description |
---|---|
IDictionary<string, string> | If the provided string is a valid JSON object, then the result is a dictionary of the properties and provided values (which might be JSON strings themselves). Otherwise, null is returned |