Click here to Skip to main content
15,887,453 members
Home / Discussions / C#
   

C#

 
GeneralRe: Thread Sleeping using an enum Pin
Nick Parker24-Nov-02 18:40
protectorNick Parker24-Nov-02 18:40 
GeneralRe: Thread Sleeping using an enum Pin
David Stone25-Nov-02 8:43
sitebuilderDavid Stone25-Nov-02 8:43 
QuestionThreads can't communicate without a while(true) loop? Pin
Bog22-Nov-02 16:56
Bog22-Nov-02 16:56 
AnswerRe: Threads can't communicate without a while(true) loop? Pin
James T. Johnson22-Nov-02 17:20
James T. Johnson22-Nov-02 17:20 
GeneralRe: Threads can't communicate without a while(true) loop? Pin
Bog22-Nov-02 18:04
Bog22-Nov-02 18:04 
GeneralRe: Threads can't communicate without a while(true) loop? Pin
James T. Johnson23-Nov-02 7:39
James T. Johnson23-Nov-02 7:39 
GeneralRe: Threads can't communicate without a while(true) loop? Pin
Bog23-Nov-02 8:51
Bog23-Nov-02 8:51 
QuestionType-safe indexers when inheriting from IList? Pin
Domenic Denicola22-Nov-02 16:49
Domenic Denicola22-Nov-02 16:49 
I am inheriting my class from IList as suggested earlier as a solution to my DataGrid woes. However, it struck me that I would think that it would be best if the indexer, a required property for inheriting from IList, was type-safe, i.e. returned a MyType instead of a simple object. But when I do this:

public MyType this[int index]
{
	get { return (MyType)this.myArrayList[index]; }
	set { return this.myArrayList[index] = value; }
}
object this[int index]
{
	get { return this.myArrayList[index]; }
	set { return this.myArrayList[index] = value; }
}


it gives me this: Class 'MyIListImplementor' already defines a member called 'this' with the same parameter types.

Yet I know the framework classes seem able to create indexers with non-object return values, yet still inherit from IList. Help?


-Domenic Denicola- [CPUA 0x1337]

“I was born human. But this was an accident of fate—a condition merely of time and place. I believe it's something we have the power to change…”

AnswerRe: Type-safe indexers when inheriting from IList? Pin
James T. Johnson22-Nov-02 17:33
James T. Johnson22-Nov-02 17:33 
GeneralRe: Type-safe indexers when inheriting from IList? Pin
Domenic Denicola22-Nov-02 18:09
Domenic Denicola22-Nov-02 18:09 
GeneralRe: Type-safe indexers when inheriting from IList? Pin
James T. Johnson23-Nov-02 7:46
James T. Johnson23-Nov-02 7:46 
GeneralRe: Type-safe indexers when inheriting from IList? Pin
leppie23-Nov-02 2:25
leppie23-Nov-02 2:25 
GeneralRe: Type-safe indexers when inheriting from IList? Pin
David Stone23-Nov-02 5:19
sitebuilderDavid Stone23-Nov-02 5:19 
GeneralRe: Type-safe indexers when inheriting from IList? Pin
James T. Johnson23-Nov-02 7:41
James T. Johnson23-Nov-02 7:41 
GeneralRe: Type-safe indexers when inheriting from IList? Pin
David Stone23-Nov-02 8:03
sitebuilderDavid Stone23-Nov-02 8:03 
GeneralCustom Forms Designer Pin
Gevik Babakhani22-Nov-02 11:45
Gevik Babakhani22-Nov-02 11:45 
GeneralRe: Custom Forms Designer Pin
John Fisher25-Nov-02 10:29
John Fisher25-Nov-02 10:29 
GeneralConfig files embedded in exe Pin
BarryJ22-Nov-02 11:15
BarryJ22-Nov-02 11:15 
GeneralRe: Config files embedded in exe Pin
Gevik Babakhani22-Nov-02 11:57
Gevik Babakhani22-Nov-02 11:57 
Generalinvoking the compiler from my own code Pin
LongRange.Shooter22-Nov-02 9:33
LongRange.Shooter22-Nov-02 9:33 
GeneralRe: invoking the compiler from my own code Pin
leppie22-Nov-02 12:20
leppie22-Nov-02 12:20 
GeneralRe: invoking the compiler from my own code Pin
LongRange.Shooter25-Nov-02 3:37
LongRange.Shooter25-Nov-02 3:37 
GeneralRe: invoking the compiler from my own code Pin
leppie23-Nov-02 2:31
leppie23-Nov-02 2:31 
GeneralRe: invoking the compiler from my own code Pin
LongRange.Shooter26-Nov-02 4:56
LongRange.Shooter26-Nov-02 4:56 
GeneralRe: invoking the compiler from my own code Pin
leppie26-Nov-02 6:11
leppie26-Nov-02 6:11 

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.