I would like to serialize with System.Xml.Serialization the following XML code. Is there a way to have it inside an object containing the type (typeRef) of this variable (text) defined at runtime ?
<input>
<inputExpression typeRef="integer">
<text>4</text>
</inputExpression>
</input>
typeref can only be primitives types
I would expect to use the implementation of IXmlSerializable on an "InputExpression" class but I'm blocked at this point.