Click here to Skip to main content
15,925,661 members
Home / Discussions / C#
   

C#

 
GeneralRe: Deserializing in a different assembly... how to? Pin
Carl Mercier21-Nov-03 5:40
Carl Mercier21-Nov-03 5:40 
GeneralRe: Deserializing in a different assembly... how to? Pin
Heath Stewart21-Nov-03 6:37
protectorHeath Stewart21-Nov-03 6:37 
GeneralRe: Deserializing in a different assembly... how to? Pin
Carl Mercier21-Nov-03 18:27
Carl Mercier21-Nov-03 18:27 
GeneralRe: Deserializing in a different assembly... how to? Pin
Heath Stewart22-Nov-03 11:18
protectorHeath Stewart22-Nov-03 11:18 
GeneralRe: Deserializing in a different assembly... how to? Pin
gokselm23-Nov-03 8:35
gokselm23-Nov-03 8:35 
GeneralRe: Deserializing in a different assembly... how to? Pin
Heath Stewart24-Nov-03 4:30
protectorHeath Stewart24-Nov-03 4:30 
GeneralRe: Deserializing in a different assembly... how to? Pin
gokselm24-Nov-03 8:44
gokselm24-Nov-03 8:44 
GeneralRe: Deserializing in a different assembly... how to? Pin
Heath Stewart24-Nov-03 9:43
protectorHeath Stewart24-Nov-03 9:43 
Hmm, I didn't know about the serialization binder. Very interesting.

And speaking of interesting serialization things, you should check out the ISerializationSurrogate. It won't help you, but it may come in handy for other things. Just thought I'd mention it. Smile | :)

One thing, though, I wouldn't return null from BindToType. Instead, you could return Type.GetType(string.Format("{0}, {1}", typeName, assemblyName), or else nested objects or other objects won't be (de)serialized (unless returning null tells the serializer to use the actual type, but it's not documented and I don't feel like digging through the IL to find it! Eek! | :eek: ).

 

-----BEGIN GEEK CODE BLOCK-----
Version: 3.21
GCS/G/MU d- s: a- C++++ UL@ P++(+++) L+(--) E--- W+++ N++ o+ K? w++++ O- M(+) V? PS-- PE Y++ PGP++ t++@ 5 X+++ R+@ tv+ b(-)>b++ DI++++ D+ G e++>+++ h---* r+++ y+++
-----END GEEK CODE BLOCK-----
GeneralMysterious vanishing tooltips... Pin
ToddTTT20-Nov-03 15:30
ToddTTT20-Nov-03 15:30 
GeneralRe: Mysterious vanishing tooltips... Pin
Heath Stewart21-Nov-03 4:04
protectorHeath Stewart21-Nov-03 4:04 
GeneralC# and Crystal Reports Viewer Pin
trevleyb20-Nov-03 13:45
trevleyb20-Nov-03 13:45 
GeneralRe: C# and Crystal Reports Viewer Pin
Heath Stewart20-Nov-03 14:14
protectorHeath Stewart20-Nov-03 14:14 
GeneralExecuting scripts Pin
Alex Korchemniy20-Nov-03 13:13
Alex Korchemniy20-Nov-03 13:13 
GeneralRe: Executing scripts Pin
Heath Stewart20-Nov-03 14:04
protectorHeath Stewart20-Nov-03 14:04 
GeneralRe: Executing scripts Pin
Alex Korchemniy20-Nov-03 14:32
Alex Korchemniy20-Nov-03 14:32 
GeneralRe: Executing scripts Pin
Heath Stewart21-Nov-03 3:16
protectorHeath Stewart21-Nov-03 3:16 
GeneralLeppie, please read Pin
Den2Fly20-Nov-03 10:44
Den2Fly20-Nov-03 10:44 
GeneralRe: Leppie, please read Pin
leppie20-Nov-03 11:28
leppie20-Nov-03 11:28 
GeneralCuz he's a C# wizard, has to be a twist... Pin
Jeremy Kimball20-Nov-03 6:47
Jeremy Kimball20-Nov-03 6:47 
GeneralRe: Cuz he's a C# wizard, has to be a twist... Pin
Heath Stewart20-Nov-03 7:24
protectorHeath Stewart20-Nov-03 7:24 
GeneralRe: Cuz he's a C# wizard, has to be a twist... Pin
Jeremy Kimball20-Nov-03 7:39
Jeremy Kimball20-Nov-03 7:39 
GeneralRe: Cuz he's a C# wizard, has to be a twist... Pin
Alvaro Mendez20-Nov-03 8:21
Alvaro Mendez20-Nov-03 8:21 
GeneralHow do you think he does it? I don't know. Pin
Kentamanos20-Nov-03 8:39
Kentamanos20-Nov-03 8:39 
GeneralRe: Cuz he's a C# wizard, has to be a twist... Pin
Giles20-Nov-03 8:55
Giles20-Nov-03 8:55 
GeneralRe: Cuz he's a C# wizard, has to be a twist... Pin
Jeff Varszegi20-Nov-03 14:24
professionalJeff Varszegi20-Nov-03 14:24 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.