PropertyInterface
Nectunia.PropertyInterface.PropertySerialization Class Reference

Detailed Description

Tools class used to Serialize and deserialize Object value.

Static Public Attributes

const string NULL_VALUE = "n00"
 The string representation for a null object More...
 

Static Public Member Functions

static string ObjectToString (object obj)
 Serialize an object to a string. More...
 
static object StringToObject (string str)
 Deserialize a string to an object. More...
 

Member Function Documentation

◆ ObjectToString()

static string Nectunia.PropertyInterface.PropertySerialization.ObjectToString ( object  obj)
static

Serialize an object to a string.

Parameters
objThe object to serialize.
Returns
The serialized Object value as a string.

◆ StringToObject()

static object Nectunia.PropertyInterface.PropertySerialization.StringToObject ( string  str)
static

Deserialize a string to an object.

Parameters
strThe string to deserialize.
Returns
The object deserialize from the string. Null if the string is not a allowed serialiezed object.

Member Data Documentation

◆ NULL_VALUE

const string Nectunia.PropertyInterface.PropertySerialization.NULL_VALUE = "n00"
static

The string representation for a null object