Click here to Skip to main content
16,018,092 members
Home / Discussions / C#
   

C#

 
AnswerRe: how to convert ToolStripButton to control? Pin
Not Active3-Nov-10 3:34
mentorNot Active3-Nov-10 3:34 
AnswerRe: how to convert ToolStripButton to control? PinPopular
Alan N3-Nov-10 6:10
Alan N3-Nov-10 6:10 
Questionsend record from the datagridview to next page Pin
annie_bel3-Nov-10 1:40
annie_bel3-Nov-10 1:40 
AnswerRe: send record from the datagridview to next page Pin
Calla3-Nov-10 1:48
Calla3-Nov-10 1:48 
QuestionUnable to cast object from webservice Pin
il_manti3-Nov-10 1:24
il_manti3-Nov-10 1:24 
AnswerRe: Unable to cast object from webservice [modified] Pin
Keith Barrow3-Nov-10 2:01
professionalKeith Barrow3-Nov-10 2:01 
AnswerRe: Unable to cast object from webservice Pin
Pete O'Hanlon3-Nov-10 2:03
mvePete O'Hanlon3-Nov-10 2:03 
AnswerRe: Unable to cast object from webservice Pin
OriginalGriff3-Nov-10 2:04
mveOriginalGriff3-Nov-10 2:04 
If you can change them both, then the best thing to do is to set up a separate assembly (LibraryUtilities or similar) which contains your Book class. Both services then refer to that.

Other than that, it's a case of manual conversion if you want to be safe - i.e. create a new LibrarySearch.Book from your instance of a LibrarySorter.Book and vice versa. They are treated as different classes because one of them could be changed without the other altering. Just casting (or serialize / deserialise) won't work because the compiler can't know they are the same: it sees the names are different and knows they could be different in the future.
Real men don't use instructions. They are only the manufacturers opinion on how to put the thing together.

AnswerRe: Unable to cast object from webservice Pin
il_manti3-Nov-10 2:08
il_manti3-Nov-10 2:08 
AnswerRe: Unable to cast object from webservice Pin
Bernhard Hiller3-Nov-10 22:56
Bernhard Hiller3-Nov-10 22:56 
Questionhow to compose a content with php Pin
zendprince2-Nov-10 19:44
zendprince2-Nov-10 19:44 
AnswerMy Vote of 1 Pin
Keith Barrow2-Nov-10 20:56
professionalKeith Barrow2-Nov-10 20:56 
AnswerRe: how to compose a content with php Pin
Smithers-Jones2-Nov-10 21:49
Smithers-Jones2-Nov-10 21:49 
QuestionSubscript literal Pin
Martijn Boeker2-Nov-10 10:47
Martijn Boeker2-Nov-10 10:47 
AnswerRe: Subscript literal Pin
Ennis Ray Lynch, Jr.2-Nov-10 10:53
Ennis Ray Lynch, Jr.2-Nov-10 10:53 
GeneralRe: Subscript literal Pin
Martijn Boeker2-Nov-10 11:53
Martijn Boeker2-Nov-10 11:53 
AnswerRe: Subscript literal Pin
Luc Pattyn2-Nov-10 11:30
sitebuilderLuc Pattyn2-Nov-10 11:30 
GeneralRe: Subscript literal Pin
Martijn Boeker2-Nov-10 11:58
Martijn Boeker2-Nov-10 11:58 
GeneralRe: Subscript literal Pin
Martijn Boeker2-Nov-10 12:58
Martijn Boeker2-Nov-10 12:58 
GeneralRe: Subscript literal Pin
Dave Kreskowiak2-Nov-10 14:05
mveDave Kreskowiak2-Nov-10 14:05 
GeneralRe: Subscript literal Pin
Martijn Boeker2-Nov-10 14:47
Martijn Boeker2-Nov-10 14:47 
GeneralRe: Subscript literal Pin
AspDotNetDev2-Nov-10 14:59
protectorAspDotNetDev2-Nov-10 14:59 
GeneralRe: Subscript literal Pin
Martijn Boeker2-Nov-10 15:13
Martijn Boeker2-Nov-10 15:13 
GeneralRe: Subscript literal Pin
AspDotNetDev2-Nov-10 15:29
protectorAspDotNetDev2-Nov-10 15:29 
GeneralRe: Subscript literal Pin
Martijn Boeker2-Nov-10 15:36
Martijn Boeker2-Nov-10 15: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.