0

Doing this is .NET 4.0 and newer is trivial using the BindToName method, which is the opposite of the BindToType method of the SerializationBinder. But, does anyone know a way to do this in .NET 3.5?

Note: The .NET 4.0 answer to this is here.

Community
  • 1
  • 1
Ben McIntosh
  • 1,532
  • 3
  • 20
  • 29

1 Answers1

0

I think you need to use something which implements the ISerializationSurrogate interface to do this,and its quite a lot of work.

Check out this MSDN article by Jeffrey Richter from back in 2002.

It's unfortunately all fantastically fiddly.

Matthew Watson
  • 104,400
  • 10
  • 158
  • 276
  • I was afraid of that and never could figure out using Surrogates just to map to an old namespace. Going to leave this open for a while to see if anyone knows of an example. – Ben McIntosh Jun 18 '13 at 15:29