Click here to Skip to main content
15,918,742 members
Home / Discussions / C#
   

C#

 
AnswerRe: BinaryFormatter: Serializing an object's base class Pin
Mark Salsbery8-Oct-08 7:59
Mark Salsbery8-Oct-08 7:59 
GeneralRe: BinaryFormatter: Serializing an object's base class Pin
mav.northwind8-Oct-08 8:27
mav.northwind8-Oct-08 8:27 
GeneralRe: BinaryFormatter: Serializing an object's base class Pin
Mark Salsbery8-Oct-08 9:37
Mark Salsbery8-Oct-08 9:37 
GeneralRe: BinaryFormatter: Serializing an object's base class Pin
mav.northwind8-Oct-08 10:05
mav.northwind8-Oct-08 10:05 
GeneralRe: BinaryFormatter: Serializing an object's base class Pin
Mark Salsbery8-Oct-08 11:01
Mark Salsbery8-Oct-08 11:01 
GeneralRe: BinaryFormatter: Serializing an object's base class Pin
Mark Salsbery8-Oct-08 12:21
Mark Salsbery8-Oct-08 12:21 
GeneralRe: BinaryFormatter: Serializing an object's base class Pin
mav.northwind8-Oct-08 23:46
mav.northwind8-Oct-08 23:46 
GeneralRe: BinaryFormatter: Serializing an object's base class Pin
Mark Salsbery9-Oct-08 5:09
Mark Salsbery9-Oct-08 5:09 
Right.

The only way I can see to do it, if the deserialization end has
no access to the Dog class (or an equivalent class), is to add a
method to Dog that returns an Animal object and serialize that object.

It's really unconventional anyway....it generally doesn't make sense
to only serialize the base class portion of an object. But if you have
a special need I suppose you need a special solution. Smile | :)


Mark

Mark Salsbery
Microsoft MVP - Visual C++

Java | [Coffee]

GeneralRe: BinaryFormatter: Serializing an object's base class Pin
mav.northwind9-Oct-08 8:42
mav.northwind9-Oct-08 8:42 
GeneralRe: BinaryFormatter: Serializing an object's base class Pin
Mark Salsbery9-Oct-08 8:54
Mark Salsbery9-Oct-08 8:54 
QuestionWhat do I put in a VSTO Outlook Add In shutdown handler? Pin
justastupidgurl8-Oct-08 2:59
justastupidgurl8-Oct-08 2:59 
QuestionI need free C# TreeList( or TreeView) code that will run on the web form Pin
inerp8-Oct-08 1:30
inerp8-Oct-08 1:30 
AnswerRe: I need free C# TreeList( or TreeView) code that will run on the web form Pin
J4amieC8-Oct-08 1:39
J4amieC8-Oct-08 1:39 
AnswerRe: I need free C# TreeList( or TreeView) code that will run on the web form Pin
Giorgi Dalakishvili8-Oct-08 1:44
mentorGiorgi Dalakishvili8-Oct-08 1:44 
AnswerRe: I need free C# TreeList( or TreeView) code that will run on the web form Pin
leppie8-Oct-08 1:53
leppie8-Oct-08 1:53 
AnswerRe: I need free C# TreeList( or TreeView) code that will run on the web form Pin
Muhammad Gouda8-Oct-08 2:01
Muhammad Gouda8-Oct-08 2:01 
AnswerRe: I need free C# TreeList( or TreeView) code that will run on the web form Pin
#realJSOP8-Oct-08 2:59
professional#realJSOP8-Oct-08 2:59 
Questionstatic Object Pin
Deepak the Cool8-Oct-08 1:20
Deepak the Cool8-Oct-08 1:20 
AnswerRe: static Object Pin
Colin Angus Mackay8-Oct-08 2:08
Colin Angus Mackay8-Oct-08 2:08 
QuestionCentralized exception handler and logger Pin
matixsc8-Oct-08 0:57
professionalmatixsc8-Oct-08 0:57 
AnswerRe: Centralized exception handler and logger Pin
Giorgi Dalakishvili8-Oct-08 1:14
mentorGiorgi Dalakishvili8-Oct-08 1:14 
AnswerRe: Centralized exception handler and logger Pin
matixsc8-Oct-08 2:16
professionalmatixsc8-Oct-08 2:16 
QuestionRe:Installing Flash player with windows set up Pin
RameshwerE8-Oct-08 0:19
RameshwerE8-Oct-08 0:19 
QuestionUpdate requires a valid UpdateCommand when passed DataRow collection with modified rows. [modified] Pin
astrovirgin7-Oct-08 23:36
astrovirgin7-Oct-08 23:36 
AnswerRe: Update requires a valid UpdateCommand when passed DataRow collection with modified rows. Pin
Giorgi Dalakishvili8-Oct-08 0:23
mentorGiorgi Dalakishvili8-Oct-08 0:23 

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.