Click here to Skip to main content
15,905,504 members
Home / Discussions / C#
   

C#

 
GeneralRe: to close connection to database after i use or not ? Pin
Wendelius28-Mar-11 10:50
mentorWendelius28-Mar-11 10:50 
GeneralRe: to close connection to database after i use or not ? Pin
Luc Pattyn28-Mar-11 11:30
sitebuilderLuc Pattyn28-Mar-11 11:30 
GeneralRe: to close connection to database after i use or not ? Pin
Wendelius28-Mar-11 11:40
mentorWendelius28-Mar-11 11:40 
JokeRe: to close connection to database after i use or not ? Pin
Ganesh Kumar Kaki13-Apr-11 2:32
Ganesh Kumar Kaki13-Apr-11 2:32 
AnswerRe: to close connection to database after i use or not ? Pin
#realJSOP28-Mar-11 9:55
professional#realJSOP28-Mar-11 9:55 
AnswerRe: to close connection to database after i use or not ? Pin
Wendelius28-Mar-11 10:48
mentorWendelius28-Mar-11 10:48 
AnswerRe: to close connection to database after i use or not ? Pin
PIEBALDconsult28-Mar-11 14:25
mvePIEBALDconsult28-Mar-11 14:25 
QuestionHow to communicate to a device via serial port Pin
_awatts28-Mar-11 6:21
_awatts28-Mar-11 6:21 
GeneralRe: How to communicate to a device via serial port Pin
_awatts28-Mar-11 9:09
_awatts28-Mar-11 9:09 
GeneralRe: How to communicate to a device via serial port Pin
Luc Pattyn28-Mar-11 9:21
sitebuilderLuc Pattyn28-Mar-11 9:21 
GeneralRe: How to communicate to a device via serial port Pin
_awatts28-Mar-11 9:57
_awatts28-Mar-11 9:57 
AnswerRe: How to communicate to a device via serial port Pin
Luc Pattyn28-Mar-11 10:15
sitebuilderLuc Pattyn28-Mar-11 10:15 
GeneralRe: How to communicate to a device via serial port Pin
_awatts28-Mar-11 10:45
_awatts28-Mar-11 10:45 
AnswerRe: How to communicate to a device via serial port Pin
Luc Pattyn28-Mar-11 11:00
sitebuilderLuc Pattyn28-Mar-11 11:00 
GeneralRe: How to communicate to a device via serial port Pin
_awatts28-Mar-11 11:38
_awatts28-Mar-11 11:38 
AnswerRe: How to communicate to a device via serial port Pin
Luc Pattyn28-Mar-11 11:55
sitebuilderLuc Pattyn28-Mar-11 11:55 
AnswerRe: How to communicate to a device via serial port Pin
Pritesh Aryan28-Mar-11 20:55
Pritesh Aryan28-Mar-11 20:55 
AnswerRe: How to communicate to a device via serial port Pin
Ganesh Kumar Kaki13-Apr-11 2:35
Ganesh Kumar Kaki13-Apr-11 2:35 
QuestionDebugging a C# GUI app started via commandline Pin
wizardzz28-Mar-11 5:48
wizardzz28-Mar-11 5:48 
AnswerRe: Debugging a C# GUI app started via commandline Pin
Ian Shlasko28-Mar-11 5:58
Ian Shlasko28-Mar-11 5:58 
GeneralRe: Debugging a C# GUI app started via commandline Pin
wizardzz28-Mar-11 6:15
wizardzz28-Mar-11 6:15 
GeneralRe: Debugging a C# GUI app started via commandline Pin
Ian Shlasko28-Mar-11 6:45
Ian Shlasko28-Mar-11 6:45 
QuestionRead XML Into Class Hierarchy Pin
Kevin Marois28-Mar-11 5:10
professionalKevin Marois28-Mar-11 5:10 
AnswerRe: Read XML Into Class Hierarchy Pin
Ian Shlasko28-Mar-11 5:22
Ian Shlasko28-Mar-11 5:22 
Well, if the XML tags correspond to class names in a predefined namespace, you can use reflection to invoke the constructors, then more reflection to assign child properties (Maybe have each class implement an interface so you know where the children go)...

Alternatively, you can use something like a factory pattern and recurse through the XML tree manually, which gives you more capability and flexibility while requiring a lot more code both at the beginning and when things change down the road...

Kind of depends on the specifics of the situation.
Proud to have finally moved to the A-Ark. Which one are you in?
Author of the Guardians Saga (Sci-Fi/Fantasy novels)

GeneralRe: Read XML Into Class Hierarchy Pin
Kevin Marois28-Mar-11 5:33
professionalKevin Marois28-Mar-11 5:33 

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.