Click here to Skip to main content
15,891,981 members
Home / Discussions / C#
   

C#

 
AnswerRe: method problem Pin
S. Senthil Kumar3-Nov-05 17:57
S. Senthil Kumar3-Nov-05 17:57 
GeneralRe: method problem Pin
nbaker4-Nov-05 1:40
nbaker4-Nov-05 1:40 
QuestionWindow service and system tray Pin
vidyaN3-Nov-05 9:50
vidyaN3-Nov-05 9:50 
AnswerRe: Window service and system tray Pin
Jon Rista4-Nov-05 16:51
Jon Rista4-Nov-05 16:51 
GeneralRe: Window service and system tray Pin
vidyaN7-Nov-05 7:27
vidyaN7-Nov-05 7:27 
GeneralRe: Window service and system tray Pin
Jon Rista8-Nov-05 7:02
Jon Rista8-Nov-05 7:02 
QuestionXML Formatted String and Collection with dynamic value types Pin
budidharma3-Nov-05 9:19
budidharma3-Nov-05 9:19 
AnswerRe: XML Formatted String and Collection with dynamic value types Pin
Wjousts3-Nov-05 10:57
Wjousts3-Nov-05 10:57 
budidharma wrote:
So, my questions are: Is there a datatype in C# that can store mulitple types of data in it?


Since all classes are derived from the Object class any collection that can hold objects (e.g. an Array or ArrayList) is capable of holding objects of any class.
For recreating objects from XML I think you'll want to look in to the Reflection classes. You'd need to extract the type attribute from your XML string and use reflection to try and create the object of that class. Maybe it would also be possible to use serialization to recreate your objects?
GeneralRe: XML Formatted String and Collection with dynamic value types Pin
budidharma3-Nov-05 12:40
budidharma3-Nov-05 12:40 
GeneralRe: XML Formatted String and Collection with dynamic value types Pin
S. Senthil Kumar3-Nov-05 18:01
S. Senthil Kumar3-Nov-05 18:01 
AnswerRe: XML Formatted String and Collection with dynamic value types Pin
Jon Rista4-Nov-05 16:53
Jon Rista4-Nov-05 16:53 
QuestionGeting data from another program Pin
JJDIII3-Nov-05 8:57
JJDIII3-Nov-05 8:57 
AnswerRe: Accepting a string from another program Pin
Dave Kreskowiak3-Nov-05 14:13
mveDave Kreskowiak3-Nov-05 14:13 
GeneralRe: Accepting a string from another program Pin
JJDIII4-Nov-05 2:24
JJDIII4-Nov-05 2:24 
GeneralRe: Accepting a string from another program Pin
Dave Kreskowiak4-Nov-05 12:07
mveDave Kreskowiak4-Nov-05 12:07 
Questionchanging references for different configurations Pin
BlackDice3-Nov-05 8:23
BlackDice3-Nov-05 8:23 
AnswerRe: changing references for different configurations Pin
.NetRocker3-Nov-05 10:26
.NetRocker3-Nov-05 10:26 
QuestionStruct Pin
budidharma3-Nov-05 7:54
budidharma3-Nov-05 7:54 
AnswerRe: Struct Pin
.NetRocker3-Nov-05 10:28
.NetRocker3-Nov-05 10:28 
GeneralRe: Struct Pin
Christian Graus3-Nov-05 11:16
protectorChristian Graus3-Nov-05 11:16 
AnswerRe: Struct Pin
Christian Graus3-Nov-05 11:11
protectorChristian Graus3-Nov-05 11:11 
GeneralRe: Struct Pin
budidharma3-Nov-05 12:44
budidharma3-Nov-05 12:44 
AnswerRe: Struct Pin
Guffa3-Nov-05 13:16
Guffa3-Nov-05 13:16 
GeneralRe: Struct Pin
S. Senthil Kumar3-Nov-05 18:25
S. Senthil Kumar3-Nov-05 18:25 
GeneralRe: Struct Pin
Guffa3-Nov-05 22:10
Guffa3-Nov-05 22:10 

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.