Click here to Skip to main content
15,914,160 members
Home / Discussions / C#
   

C#

 
AnswerRe: Need help converting between similar types [modified] Pin
Paw Jershauge8-Sep-08 8:35
Paw Jershauge8-Sep-08 8:35 
GeneralRe: Need help converting between similar types Pin
Pete O'Hanlon8-Sep-08 8:48
mvePete O'Hanlon8-Sep-08 8:48 
GeneralRe: Need help converting between similar types Pin
Paw Jershauge8-Sep-08 9:49
Paw Jershauge8-Sep-08 9:49 
GeneralRe: Need help converting between similar types Pin
Pete O'Hanlon8-Sep-08 9:51
mvePete O'Hanlon8-Sep-08 9:51 
GeneralRe: Need help converting between similar types Pin
Paw Jershauge8-Sep-08 9:53
Paw Jershauge8-Sep-08 9:53 
GeneralRe: Need help converting between similar types Pin
Pete O'Hanlon8-Sep-08 10:05
mvePete O'Hanlon8-Sep-08 10:05 
GeneralRe: Need help converting between similar types Pin
Erik Westermann9-Sep-08 8:05
professionalErik Westermann9-Sep-08 8:05 
AnswerRe: Need help converting between similar types Pin
carbon_golem8-Sep-08 15:36
carbon_golem8-Sep-08 15:36 
I think I would either use specialized converter classes, custom explicit/implicit operators, or maybe some exotic kind of software pattern. I might stay away from reflection in this case. Depending on the framework version you're using you could just hammer out an extension method that converts. In any case, the real problem here is the flawed class design (I know sometimes this can't be helped). If you can merge the functionality of the Person and PersonEx classes you won't need any tricksy conversion methods.
Hope that helps...

Regards,
Scott P

“It is practically impossible to teach good programming to students that have had a prior exposure to BASIC: as potential programmers they are mentally mutilated beyond hope of regeneration.”
-Edsger Dijkstra

GeneralRe: Need help converting between similar types Pin
Erik Westermann9-Sep-08 8:12
professionalErik Westermann9-Sep-08 8:12 
QuestionSecure page with C#.NET Pin
mghiassi8-Sep-08 6:37
mghiassi8-Sep-08 6:37 
AnswerRe: Secure page with C#.NET Pin
Dave Sexton8-Sep-08 7:14
Dave Sexton8-Sep-08 7:14 
Question[Message Deleted] Pin
mghiassi8-Sep-08 6:32
mghiassi8-Sep-08 6:32 
AnswerRe: Secure page with C#.NET Pin
Anthony Mushrow8-Sep-08 6:43
professionalAnthony Mushrow8-Sep-08 6:43 
QuestionJavascript for checkboxes which are in repeater Pin
AtulRane8-Sep-08 5:30
AtulRane8-Sep-08 5:30 
AnswerWrong forum Pin
Pete O'Hanlon8-Sep-08 5:32
mvePete O'Hanlon8-Sep-08 5:32 
QuestionPrinterAdd Pin
arkiboys8-Sep-08 4:17
arkiboys8-Sep-08 4:17 
AnswerRe: PrinterAdd Pin
Pete O'Hanlon8-Sep-08 4:25
mvePete O'Hanlon8-Sep-08 4:25 
GeneralRe: PrinterAdd Pin
arkiboys8-Sep-08 4:29
arkiboys8-Sep-08 4:29 
GeneralRe: PrinterAdd Pin
led mike8-Sep-08 4:51
led mike8-Sep-08 4:51 
GeneralRe: PrinterAdd Pin
arkiboys8-Sep-08 10:34
arkiboys8-Sep-08 10:34 
QuestionHow to go back? [modified] Pin
mistyangel8-Sep-08 4:00
mistyangel8-Sep-08 4:00 
GeneralRe: How to go back? Pin
Guffa8-Sep-08 4:12
Guffa8-Sep-08 4:12 
GeneralRe: How to go back? Pin
Christian Graus8-Sep-08 4:18
protectorChristian Graus8-Sep-08 4:18 
GeneralRe: How to go back? Pin
Dan Neely8-Sep-08 4:42
Dan Neely8-Sep-08 4:42 
GeneralRe: How to go back? Pin
Christian Graus8-Sep-08 5:36
protectorChristian Graus8-Sep-08 5:36 

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.