Click here to Skip to main content
15,894,362 members
Home / Discussions / C#
   

C#

 
GeneralRe: how to "catch a delegate" Pin
Ennis Ray Lynch, Jr.24-Aug-06 10:03
Ennis Ray Lynch, Jr.24-Aug-06 10:03 
GeneralRe: how to "catch a delegate" Pin
ezazazel24-Aug-06 10:11
ezazazel24-Aug-06 10:11 
GeneralRe: how to "catch a delegate" Pin
Ennis Ray Lynch, Jr.24-Aug-06 10:26
Ennis Ray Lynch, Jr.24-Aug-06 10:26 
GeneralRe: how to "catch a delegate" Pin
Robert Rohde24-Aug-06 23:27
Robert Rohde24-Aug-06 23:27 
GeneralRe: how to "catch a delegate" Pin
ezazazel25-Aug-06 3:33
ezazazel25-Aug-06 3:33 
QuestionGenerics contraints "or?" Pin
Ista24-Aug-06 7:36
Ista24-Aug-06 7:36 
AnswerRe: Generics contraints "or?" Pin
Richard Deeming24-Aug-06 8:41
mveRichard Deeming24-Aug-06 8:41 
AnswerCreate a higher interface Pin
Ennis Ray Lynch, Jr.24-Aug-06 9:13
Ennis Ray Lynch, Jr.24-Aug-06 9:13 
That both A and B implement then you can check for it instead.

public interface IShape;

public interface IEvenPolygon : IShape;

public interface IOddPolygon : IShape;

public List<t> where T: IShape;

The problem is what you want isn't type safe.



On two occasions I have been asked [by members of Parliament], 'Pray, Mr. Babbage, if you put into the machine wrong figures, will the right answers come out?' I am not able rightly to apprehend the kind of confusion of ideas that could provoke such a question. - Charles Babbage

AnswerRe: Generics contraints "or?" Pin
Judah Gabriel Himango24-Aug-06 10:14
sponsorJudah Gabriel Himango24-Aug-06 10:14 
Questionhtml file parsing help Pin
pokabot24-Aug-06 6:39
pokabot24-Aug-06 6:39 
AnswerRe: html file parsing help Pin
Dustin Metzgar24-Aug-06 10:14
Dustin Metzgar24-Aug-06 10:14 
AnswerRe: html file parsing help Pin
coolestCoder24-Aug-06 20:52
coolestCoder24-Aug-06 20:52 
QuestionListView.Items.Add(....) problem Pin
thunderbirdje24-Aug-06 6:20
thunderbirdje24-Aug-06 6:20 
AnswerRe: ListView.Items.Add(....) problem Pin
Richard Deeming24-Aug-06 8:50
mveRichard Deeming24-Aug-06 8:50 
GeneralRe: ListView.Items.Add(....) problem Pin
thunderbirdje25-Aug-06 4:07
thunderbirdje25-Aug-06 4:07 
QuestionCompiling a program through Source Code of another Program Pin
zaigham_chaudhry24-Aug-06 6:06
zaigham_chaudhry24-Aug-06 6:06 
AnswerRe: Compiling a program through Source Code of another Program Pin
Dustin Metzgar24-Aug-06 10:11
Dustin Metzgar24-Aug-06 10:11 
Questiona little problem with MenuItem, Pin
vedmack24-Aug-06 5:23
vedmack24-Aug-06 5:23 
AnswerRe: a little problem with MenuItem, Pin
MoustafaS24-Aug-06 6:26
MoustafaS24-Aug-06 6:26 
GeneralRe: a little problem with MenuItem, Pin
vedmack24-Aug-06 20:34
vedmack24-Aug-06 20:34 
QuestionC#.net with system process Pin
xiaowenjie24-Aug-06 5:17
xiaowenjie24-Aug-06 5:17 
AnswerRe: C#.net with system process Pin
Judah Gabriel Himango24-Aug-06 5:41
sponsorJudah Gabriel Himango24-Aug-06 5:41 
GeneralRe: C#.net with system process Pin
thunderbirdje24-Aug-06 6:30
thunderbirdje24-Aug-06 6:30 
Questionone to many class association Pin
chacimulch24-Aug-06 4:57
chacimulch24-Aug-06 4:57 
AnswerRe: one to many class association Pin
beatles169224-Aug-06 5:26
beatles169224-Aug-06 5:26 

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.