/ Published in: C#

Useful in cases where the object author has specified their own serialization that doesn't work for you.
Expand |
Embed | Plain Text
Copy this code and paste it in your HTML
public static string ObjectToString(object o) { string objectType = o.GetType().ToString(); foreach (PropertyInfo pi in o.GetType().GetProperties()) { } return doc.ToString(); }
Comments
