/ 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
public static string ObjectToString(object o) { string objectType = o.GetType().ToString(); foreach (PropertyInfo pi in o.GetType().GetProperties()) { } return doc.ToString(); }
You need to login to post a comment.
