I have field return System.Type and I know that it is not serializable. So I want to implement own serialization this fields depends Accept type chosen by user for example if chosen Json serialization I want to return string name of javascript type supported by .net, and when choose xml serialization return string name of Xsd type supported by .net.
It is possible to do this in .net class contains this field, or deeper in IDispatchMessageInspector or IDispatchMessageFormatter ?
Why not just have the type name as string (which is serialisable) and then on the other side of wire, turn it back to
Type?