I am writing an interop between a php service and our crm. One of the things I need to do is make sure that simple types get converted ToString() for use later in a json co
Maybe you can do something similar to this:
bool ToStringIsTyped(T myObj) { return myObj.ToString().Contains(typeof(T).FullName); }
It may not work in all cases, but possibly could be expanded