Click here to Skip to main content
15,925,133 members
Home / Discussions / C#
   

C#

 
QuestionExample DataGridView like Outlook... Pin
jsosa99-Jul-07 5:33
jsosa99-Jul-07 5:33 
AnswerRe: Example DataGridView like Outlook... Pin
velkropie11-Jul-07 11:40
velkropie11-Jul-07 11:40 
GeneralRe: Example DataGridView like Outlook... Pin
jsosa911-Jul-07 12:24
jsosa911-Jul-07 12:24 
GeneralRe: Example DataGridView like Outlook... Pin
velkropie13-Jul-07 10:53
velkropie13-Jul-07 10:53 
Questionunable to cast object of type 'X' to type 'X' Pin
joelbasson9-Jul-07 5:22
joelbasson9-Jul-07 5:22 
AnswerRe: unable to cast object of type 'X' to type 'X' Pin
Colin Angus Mackay9-Jul-07 5:47
Colin Angus Mackay9-Jul-07 5:47 
AnswerRe: unable to cast object of type 'X' to type 'X' Pin
Martin#9-Jul-07 6:02
Martin#9-Jul-07 6:02 
GeneralRe: unable to cast object of type 'X' to type 'X' Pin
Colin Angus Mackay9-Jul-07 7:16
Colin Angus Mackay9-Jul-07 7:16 
Martin# wrote:
But it was instanciated as IResponseProcessingCSP, and you can not Up'cast' it , I think!


You can't instantiate an interface.


Martin# wrote:
You should use the 'as' operator, which will not throw an exception, if the casting is not possible!


Perhaps there would be a situation where you do want an exception. Perhaps a case where the situation should never exist and so will be an exceptional case. Use "as" only when the posibility is frequent and expected.


Upcoming events:
* Glasgow: Mock Objects, SQL Server CLR Integration, Reporting Services, db4o, Dependency Injection with Spring ...

"I wouldn't say boo to a goose. I'm not a coward, I just realise that it would be largely pointless."

Ready to Give up - Your help will be much appreciated.


My website

GeneralRe: unable to cast object of type 'X' to type 'X' Pin
PIEBALDconsult9-Jul-07 8:25
mvePIEBALDconsult9-Jul-07 8:25 
GeneralRe: unable to cast object of type 'X' to type 'X' Pin
Luc Pattyn9-Jul-07 8:35
sitebuilderLuc Pattyn9-Jul-07 8:35 
GeneralRe: unable to cast object of type 'X' to type 'X' Pin
Martin#9-Jul-07 8:41
Martin#9-Jul-07 8:41 
GeneralRe: unable to cast object of type 'X' to type 'X' Pin
PIEBALDconsult9-Jul-07 13:48
mvePIEBALDconsult9-Jul-07 13:48 
GeneralRe: unable to cast object of type 'X' to type 'X' Pin
Luc Pattyn9-Jul-07 14:18
sitebuilderLuc Pattyn9-Jul-07 14:18 
GeneralRe: unable to cast object of type 'X' to type 'X' Pin
Martin#9-Jul-07 8:51
Martin#9-Jul-07 8:51 
GeneralRe: unable to cast object of type 'X' to type 'X' Pin
Colin Angus Mackay9-Jul-07 11:19
Colin Angus Mackay9-Jul-07 11:19 
GeneralRe: unable to cast object of type 'X' to type 'X' [modified] Pin
Martin#9-Jul-07 19:21
Martin#9-Jul-07 19:21 
GeneralRe: unable to cast object of type 'X' to type 'X' Pin
Martin#9-Jul-07 19:54
Martin#9-Jul-07 19:54 
GeneralRe: unable to cast object of type 'X' to type 'X' Pin
Vikram A Punathambekar9-Jul-07 17:50
Vikram A Punathambekar9-Jul-07 17:50 
GeneralRe: unable to cast object of type 'X' to type 'X' Pin
Martin#9-Jul-07 19:35
Martin#9-Jul-07 19:35 
GeneralRe: unable to cast object of type 'X' to type 'X' Pin
Martin#9-Jul-07 19:52
Martin#9-Jul-07 19:52 
GeneralRe: unable to cast object of type 'X' to type 'X' Pin
Vikram A Punathambekar9-Jul-07 20:16
Vikram A Punathambekar9-Jul-07 20:16 
GeneralRe: unable to cast object of type 'X' to type 'X' Pin
Martin#9-Jul-07 20:25
Martin#9-Jul-07 20:25 
GeneralRe: unable to cast object of type 'X' to type 'X' Pin
Vikram A Punathambekar9-Jul-07 22:08
Vikram A Punathambekar9-Jul-07 22:08 
GeneralRe: unable to cast object of type 'X' to type 'X' [modified] Pin
Martin#9-Jul-07 22:49
Martin#9-Jul-07 22:49 
GeneralRe: unable to cast object of type 'X' to type 'X' Pin
Vikram A Punathambekar10-Jul-07 0:47
Vikram A Punathambekar10-Jul-07 0:47 

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.