Click here to Skip to main content
15,896,269 members
Home / Discussions / C#
   

C#

 
AnswerRe: Need to call COM component using reflections in C#.NET Pin
Hristo-Bojilov19-May-10 23:19
Hristo-Bojilov19-May-10 23:19 
QuestionIcon "Lock Out" Mystery Pin
PDTUM19-May-10 10:37
PDTUM19-May-10 10:37 
AnswerRe: Icon "Lock Out" Mystery Pin
Martin Jarvis20-May-10 6:25
Martin Jarvis20-May-10 6:25 
AnswerRe: Icon "Lock Out" Mystery Pin
PDTUM20-May-10 6:47
PDTUM20-May-10 6:47 
QuestionRe: Grid Column Event Help - Need to fill Grid column with text on the fly Pin
roman_s19-May-10 10:07
roman_s19-May-10 10:07 
QuestionCast Inherited to Base Pin
mbv80019-May-10 9:50
mbv80019-May-10 9:50 
AnswerRe: Cast Inherited to Base Pin
#realJSOP19-May-10 10:14
professional#realJSOP19-May-10 10:14 
AnswerRe: Cast Inherited to Base Pin
Luc Pattyn19-May-10 10:46
sitebuilderLuc Pattyn19-May-10 10:46 
you can't do that. An instance of InheritedTable is a DataTable by its very definition; the reverse is not true: when MS created the DataTable class, they did not know about your InheritedTable. Theirs is a rather general-purpose class, yours is more specialized, probably needing more members (data fields, methods), which take memory to store, and that extra memory does not exist inside an instance of the general-purpose DataTable.

So there is no way to promote/specialize an existing DataTable; all you can do is create a new instance of InheritedTable, one that copies the original DataTable content; you could give InheritedTable an extra constructor for this purpose.

If you want a Cat, don't order a Mammal, and hope for some magic; just order a Cat.

Smile | :)
Luc Pattyn [Forum Guidelines] [Why QA sucks] [My Articles]

I only read formatted code with indentation, so please use PRE tags for code snippets.

I'm not participating in frackin' Q&A, so if you want my opinion, ask away in a real forum (or on my profile page).

GeneralRe: Cast Inherited to Base Pin
PIEBALDconsult19-May-10 12:18
mvePIEBALDconsult19-May-10 12:18 
GeneralRe: Cast Inherited to Base Pin
Luc Pattyn19-May-10 12:28
sitebuilderLuc Pattyn19-May-10 12:28 
GeneralRe: Cast Inherited to Base Pin
PIEBALDconsult19-May-10 12:50
mvePIEBALDconsult19-May-10 12:50 
GeneralRe: Cast Inherited to Base Pin
Roger Wright20-May-10 11:07
professionalRoger Wright20-May-10 11:07 
GeneralRe: Cast Inherited to Base Pin
PIEBALDconsult20-May-10 12:58
mvePIEBALDconsult20-May-10 12:58 
GeneralRe: Cast Inherited to Base Pin
Roger Wright20-May-10 16:32
professionalRoger Wright20-May-10 16:32 
GeneralRe: Cast Inherited to Base Pin
Pete O'Hanlon19-May-10 23:07
mvePete O'Hanlon19-May-10 23:07 
AnswerRe: Cast Inherited to Base Pin
T M Gray19-May-10 11:54
T M Gray19-May-10 11:54 
QuestionImage Comparison Pin
eddieangel19-May-10 8:33
eddieangel19-May-10 8:33 
AnswerRe: Image Comparison Pin
Henry Minute19-May-10 9:19
Henry Minute19-May-10 9:19 
AnswerRe: Image Comparison Pin
Luc Pattyn19-May-10 9:20
sitebuilderLuc Pattyn19-May-10 9:20 
GeneralRe: Image Comparison Pin
eddieangel19-May-10 9:27
eddieangel19-May-10 9:27 
GeneralRe: Image Comparison Pin
Luc Pattyn19-May-10 9:36
sitebuilderLuc Pattyn19-May-10 9:36 
AnswerRe: Image Comparison Pin
Alan Balkany20-May-10 4:21
Alan Balkany20-May-10 4:21 
Questionusing sqlcommand in c# Pin
teknolog12319-May-10 6:59
teknolog12319-May-10 6:59 
AnswerRe: using sqlcommand in c# Pin
Not Active19-May-10 7:07
mentorNot Active19-May-10 7:07 
AnswerRe: using sqlcommand in c# Pin
PIEBALDconsult19-May-10 7:07
mvePIEBALDconsult19-May-10 7:07 

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.