StringSerializer.SerializeObject

Serializes a flat object's properties into a String separated by a separator character/string. Only top level properties are serialized.

public static string SerializeObject(object objectToSerialize, string separator)

Parameters

objectToSerialize
The object to serialize

separator
Optional separator character or string. Default is |

Remarks

Only serializes top level properties, with no nesting support and only simple properties or those with a type converter are 'serialized'. All other property types use ToString().