Click here to Skip to main content
15,900,511 members
Home / Discussions / C#
   

C#

 
QuestionPropertyGrid - Emulate event TypeEditor for a non-event custom type. Pin
Marlboro230-Jun-08 9:27
Marlboro230-Jun-08 9:27 
AnswerRe: PropertyGrid - Emulate event TypeEditor for a non-event custom type. Pin
Judah Gabriel Himango30-Jun-08 9:41
sponsorJudah Gabriel Himango30-Jun-08 9:41 
GeneralRe: PropertyGrid - Emulate event TypeEditor for a non-event custom type. Pin
Marlboro230-Jun-08 10:02
Marlboro230-Jun-08 10:02 
GeneralRe: PropertyGrid - Emulate event TypeEditor for a non-event custom type. Pin
Judah Gabriel Himango30-Jun-08 10:07
sponsorJudah Gabriel Himango30-Jun-08 10:07 
GeneralRe: PropertyGrid - Emulate event TypeEditor for a non-event custom type. Pin
Marlboro230-Jun-08 11:02
Marlboro230-Jun-08 11:02 
GeneralRe: PropertyGrid - Emulate event TypeEditor for a non-event custom type. Pin
Judah Gabriel Himango2-Jul-08 4:23
sponsorJudah Gabriel Himango2-Jul-08 4:23 
QuestionCasting Nightmare Pin
MCEdwards30-Jun-08 7:33
MCEdwards30-Jun-08 7:33 
AnswerRe: Casting Nightmare Pin
Judah Gabriel Himango30-Jun-08 9:40
sponsorJudah Gabriel Himango30-Jun-08 9:40 
What you want to do is not possible as of C# 3. You may want to read Eric Lippert's series of articles on adding covariance and contravariance to a hypothetical version of C#[^].

In the meantime, here are some work arounds:

-Use a non-generic list.
-Make IMyItemProvider implement a non-generic interface, call it IProvidesItemsBase, then make your list be of type List<IProvidesItemsBase>. This will work, of course when you call LoadItems, you'd get back an array of AbstractMyItems.






Life, family, faith: Give me a visit.

From my latest post: "A lot of Christians struggle, perhaps at a subconscious level, about the phrase "God of Israel". After all, Israel's God is the God of Judaism, is He not? And the God of Christianity is not the God of Judaism, right?"

Judah Himango


Questionc# xml stream deserialization Pin
davegali30-Jun-08 6:07
davegali30-Jun-08 6:07 
AnswerRe: c# xml stream deserialization Pin
leppie30-Jun-08 7:58
leppie30-Jun-08 7:58 
Questionhow to run the dropped file ? Pin
Xmen Real 30-Jun-08 5:33
professional Xmen Real 30-Jun-08 5:33 
AnswerRe: how to run the dropped file ? Pin
Anthony Mushrow30-Jun-08 7:08
professionalAnthony Mushrow30-Jun-08 7:08 
GeneralRe: how to run the dropped file ? Pin
Xmen Real 30-Jun-08 14:44
professional Xmen Real 30-Jun-08 14:44 
GeneralRe: how to run the dropped file ? Pin
Anthony Mushrow30-Jun-08 23:05
professionalAnthony Mushrow30-Jun-08 23:05 
GeneralRe: how to run the dropped file ? Pin
Xmen Real 30-Jun-08 23:22
professional Xmen Real 30-Jun-08 23:22 
GeneralRe: how to run the dropped file ? Pin
Anthony Mushrow1-Jul-08 1:07
professionalAnthony Mushrow1-Jul-08 1:07 
GeneralRe: how to run the dropped file ? Pin
Xmen Real 1-Jul-08 2:31
professional Xmen Real 1-Jul-08 2:31 
AnswerRe: how to run the dropped file ? Pin
Jimmanuel30-Jun-08 10:20
Jimmanuel30-Jun-08 10:20 
GeneralRe: how to run the dropped file ? Pin
Xmen Real 30-Jun-08 14:45
professional Xmen Real 30-Jun-08 14:45 
AnswerRe: how to run the dropped file ? Pin
DaveyM691-Jul-08 2:53
professionalDaveyM691-Jul-08 2:53 
GeneralRe: how to run the dropped file ? Pin
Xmen Real 1-Jul-08 5:12
professional Xmen Real 1-Jul-08 5:12 
QuestionUnable to Connect to Visual Studios Local Host server Pin
kibromg30-Jun-08 5:14
kibromg30-Jun-08 5:14 
AnswerRe: Unable to Connect to Visual Studios Local Host server Pin
John_Adams30-Jun-08 8:44
John_Adams30-Jun-08 8:44 
Questionremoving row from dataTable / DataGridView Issue Pin
Harvey Saayman30-Jun-08 5:12
Harvey Saayman30-Jun-08 5:12 
AnswerRe: removing row from dataTable / DataGridView Issue Pin
Xmen Real 30-Jun-08 5:21
professional Xmen Real 30-Jun-08 5:21 

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.