Click here to Skip to main content
15,886,693 members
Home / Discussions / .NET (Core and Framework)
   

.NET (Core and Framework)

 
GeneralRe: Merge wave files with different sample rates/bits per sample Pin
pimb215-Aug-09 7:16
pimb215-Aug-09 7:16 
Questionthe datagrid problem Pin
prakash.ss8313-Aug-09 1:16
prakash.ss8313-Aug-09 1:16 
AnswerRe: the datagrid problem Pin
Henry Minute13-Aug-09 4:12
Henry Minute13-Aug-09 4:12 
QuestionVC++.NET Question Pin
murktinez12-Aug-09 9:20
murktinez12-Aug-09 9:20 
AnswerRe: VC++.NET Question Pin
Luc Pattyn12-Aug-09 9:32
sitebuilderLuc Pattyn12-Aug-09 9:32 
GeneralRe: VC++.NET Question [modified] Pin
murktinez12-Aug-09 10:19
murktinez12-Aug-09 10:19 
GeneralRe: VC++.NET Question Pin
Luc Pattyn12-Aug-09 10:49
sitebuilderLuc Pattyn12-Aug-09 10:49 
QuestionXML Serialisation - is it possible to generate multiple views from an object? [modified] Pin
Kalyan_A12-Aug-09 4:56
professionalKalyan_A12-Aug-09 4:56 
Hi All,
I hope i am posting in the right forum as i am looking for a .Net related solution rather than a pure XML solution.

I have the following class which i serialise using default XML serialisation.

Class UserA
UserID
UserName
Description
Comments
End Class

Later, my requirements changed and i had to generate 2 views of the same data.
In my 1st view, i would generate XML for the whole object (all 4 properties)
My 2nd view - include only UserID and UserName.

i modified the code as below

Interface iUser
UserID
UserName
End Class

Class UserA
Implements iUser
UserID implements iUser.UserID
UserName implements implements iUser.UserName
Description
Comments
End Class

I intended to serialise appropriate objects (iUser or UserA) based on my view requirements.
Unfortunately, i realised that XML serailisation does not work on interfaces - end to my dreams of getting it easy Frown | :(

My question is - if i have an Object instance, can i use any feature with serialisation to generate multiple views of an object?

I have ventured towards creating seperate classes, ISerializable, etc.

looking for suggestions on whats the best way to take this forward.

Thanks in advance.

modified on Thursday, August 13, 2009 4:23 AM

AnswerRe: XML Serialisation - is it possible to generate multiple views from an object? Pin
Tristan Rhodes13-Aug-09 23:49
Tristan Rhodes13-Aug-09 23:49 
GeneralRe: XML Serialisation - is it possible to generate multiple views from an object? Pin
Kalyan_A19-Aug-09 2:53
professionalKalyan_A19-Aug-09 2:53 
QuestionSemaphore issue Pin
Member 330096911-Aug-09 21:14
Member 330096911-Aug-09 21:14 
AnswerRe: Semaphore issue Pin
N a v a n e e t h12-Aug-09 3:22
N a v a n e e t h12-Aug-09 3:22 
GeneralRe: Semaphore issue Pin
Member 330096912-Aug-09 3:41
Member 330096912-Aug-09 3:41 
GeneralRe: Semaphore issue Pin
N a v a n e e t h12-Aug-09 7:23
N a v a n e e t h12-Aug-09 7:23 
AnswerRe: Semaphore issue Pin
Mark Salsbery12-Aug-09 7:26
Mark Salsbery12-Aug-09 7:26 
QuestionPorting Remoting to WCF architecture problem Pin
cignox111-Aug-09 20:45
cignox111-Aug-09 20:45 
QuestionSynchronisation question Pin
Esmo200011-Aug-09 14:25
Esmo200011-Aug-09 14:25 
AnswerRe: Synchronisation question Pin
Not Active11-Aug-09 15:13
mentorNot Active11-Aug-09 15:13 
GeneralRe: Synchronisation question Pin
Esmo200011-Aug-09 15:24
Esmo200011-Aug-09 15:24 
AnswerRe: Synchronisation question Pin
N a v a n e e t h11-Aug-09 15:29
N a v a n e e t h11-Aug-09 15:29 
AnswerRe: Synchronisation question Pin
harold aptroot11-Aug-09 15:32
harold aptroot11-Aug-09 15:32 
AnswerRe: Synchronisation question Pin
Luc Pattyn11-Aug-09 15:35
sitebuilderLuc Pattyn11-Aug-09 15:35 
GeneralRe: Synchronisation question Pin
harold aptroot11-Aug-09 16:00
harold aptroot11-Aug-09 16:00 
GeneralRe: Synchronisation question Pin
Luc Pattyn11-Aug-09 16:14
sitebuilderLuc Pattyn11-Aug-09 16:14 
GeneralRe: Synchronisation question Pin
supercat912-Aug-09 6:19
supercat912-Aug-09 6:19 

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.