This method needs to be able to handle any string. It should not just call System.Type.Parse without verifying that it is a parsable value for the System.Type.
return object |
The string converted to the object. |
string xml |
The value of discriminator-value or unsaved-value attribute. |