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

C#

 
GeneralRe: Need help converting between similar types Pin
Wendelius8-Sep-08 8:03
mentorWendelius8-Sep-08 8:03 
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 
Paw Jershauge wrote:
Here are some basic technics:


Cool...I got it working Smile | :) I wrote a generic function that copies matching members from one type to the other. I'm new at this, so I was not able to come up with a good solution to a problem where I need to copy in indexed property. So Person and PersonEx have a member, MoreStuff, which in turn has other string members like Field1, Field2 etc. I also needed to copy the members of Person.MoreStuff to PersonEx.MoreStuff and just ended up calling my generic function with references to MoreStuff and it worked.

This actually worked out well, since I can now at least make sure I copy all members between similar types.

(By the way - the types are messages from BizTalk orchestrations exposed as web services. There is some wierdness with orchestrations exposed as web services, so this conversion often converts between service1.Person and service2.Person even though they are identical - only the typename is different. What a headache Smile | :) )

Erik Westermann - wWorkflow.net - BizTalk Consulting Services

SOA * ESB * BPI * SaaS ... forget the alphabet soup - get the main course with our consulting services!

wWorkflow.net or +1 416-809-1453



AnswerRe: Need help converting between similar types Pin
carbon_golem8-Sep-08 15:36
carbon_golem8-Sep-08 15:36 
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 

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.