Show / Hide Table of Contents

Class TypeConversion

Denotes a helper class for type conversion

Inheritance
object
TypeConversion
Inherited Members
object.Equals(object)
object.Equals(object, object)
object.GetHashCode()
object.GetType()
object.MemberwiseClone()
object.ReferenceEquals(object, object)
object.ToString()
Namespace: NMF.Serialization
Assembly: NMF.Serialization.dll
Syntax
public static class TypeConversion

Methods

| Edit this page View Source

GetTypeConverter(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

| Edit this page View Source

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

  • Edit this page
  • View Source
In this article
Back to top Generated by DocFX