Click here to Skip to main content
15,921,837 members
Home / Discussions / C#
   

C#

 
AnswerRe: groupbox behavior Pin
Wendelius30-Nov-08 11:33
mentorWendelius30-Nov-08 11:33 
GeneralRe: groupbox behavior Pin
Luc Pattyn30-Nov-08 11:48
sitebuilderLuc Pattyn30-Nov-08 11:48 
GeneralRe: groupbox behavior Pin
electriac30-Nov-08 12:09
electriac30-Nov-08 12:09 
GeneralRe: groupbox behavior Pin
Luc Pattyn30-Nov-08 12:27
sitebuilderLuc Pattyn30-Nov-08 12:27 
GeneralRe: groupbox behavior Pin
electriac30-Nov-08 15:16
electriac30-Nov-08 15:16 
GeneralRe: groupbox behavior Pin
Luc Pattyn30-Nov-08 15:43
sitebuilderLuc Pattyn30-Nov-08 15:43 
Questiondeserialize issue Pin
George_George30-Nov-08 3:45
George_George30-Nov-08 3:45 
AnswerRe: deserialize issue [modified] Pin
User 665830-Nov-08 3:58
User 665830-Nov-08 3:58 
You can't cast two unrelated classes. This is no a deserialization issue, you will get a compiler error if you try to do this at compile time:

Type1 input = new Type1();
Type2 output = (Type2)input;


Cannot convert type 'Type1' to 'Type2'


Since deserialization happens at runtime you won't get a compiler error but a runtime error.

If you need to share common functionality then both should inherit from the same base class. If this is not possible then you have to copy the field values from Type1 over to Type2.

regards

modified on Sunday, November 30, 2008 10:18 AM


modified 12-Sep-18 21:01pm.

AnswerRe: deserialize issue Pin
Giorgi Dalakishvili30-Nov-08 4:20
mentorGiorgi Dalakishvili30-Nov-08 4:20 
QuestionImplementing Audit Trail for Objects in C#? Pin
abmv30-Nov-08 3:25
professionalabmv30-Nov-08 3:25 
AnswerRe: Implementing Audit Trail for Objects in C#? Pin
User 665830-Nov-08 4:03
User 665830-Nov-08 4:03 
GeneralRe: Implementing Audit Trail for Objects in C#? Pin
abmv30-Nov-08 6:35
professionalabmv30-Nov-08 6:35 
AnswerRe: Implementing Audit Trail for Objects in C#? Pin
Pete O'Hanlon30-Nov-08 9:40
mvePete O'Hanlon30-Nov-08 9:40 
QuestionCreating an Alias to SQL Server and configure remote access control via code ? Pin
calanit30-Nov-08 1:13
calanit30-Nov-08 1:13 
AnswerRe: Creating an Alias to SQL Server and configure remote access control via code ? Pin
Wendelius30-Nov-08 4:03
mentorWendelius30-Nov-08 4:03 
GeneralRe: Creating an Alias to SQL Server and configure remote access control via code ? Pin
calanit30-Nov-08 5:44
calanit30-Nov-08 5:44 
GeneralRe: Creating an Alias to SQL Server and configure remote access control via code ? Pin
Wendelius30-Nov-08 6:21
mentorWendelius30-Nov-08 6:21 
GeneralRe: Creating an Alias to SQL Server and configure remote access control via code ? Pin
calanit30-Nov-08 22:44
calanit30-Nov-08 22:44 
GeneralRe: Creating an Alias to SQL Server and configure remote access control via code ? Pin
Wendelius1-Dec-08 4:39
mentorWendelius1-Dec-08 4:39 
QuestionC# Windows form Applications Pin
Karmendra Suthar29-Nov-08 21:05
Karmendra Suthar29-Nov-08 21:05 
AnswerRe: C# Windows form Applications Pin
Nishant Singh29-Nov-08 21:12
Nishant Singh29-Nov-08 21:12 
AnswerRe: C# Windows form Applications Pin
nelsonpaixao30-Nov-08 4:10
nelsonpaixao30-Nov-08 4:10 
QuestionRequest.QueryString Question. Pin
Jacob D Dixon29-Nov-08 19:13
Jacob D Dixon29-Nov-08 19:13 
AnswerRe: Request.QueryString Question. Pin
Guffa29-Nov-08 21:14
Guffa29-Nov-08 21:14 
GeneralRe: Request.QueryString Question. Pin
Jacob D Dixon30-Nov-08 8:20
Jacob D Dixon30-Nov-08 8:20 

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.