Click here to Skip to main content
15,917,709 members
Home / Discussions / C#
   

C#

 
GeneralRe: use debug info from external application Pin
S. Senthil Kumar1-Jul-05 6:07
S. Senthil Kumar1-Jul-05 6:07 
GeneralRe: use debug info from external application Pin
Piovra_6-Jul-05 2:13
Piovra_6-Jul-05 2:13 
GeneralExtending xml comment intellisense Pin
Roland Bär1-Jul-05 3:42
Roland Bär1-Jul-05 3:42 
Questionhow to get wsdl using wse 2.0 in short Pin
Iftikhar Akram1-Jul-05 3:36
Iftikhar Akram1-Jul-05 3:36 
AnswerRe: how to get wsdl using wse 2.0 in short Pin
Member 122691721-Jul-05 19:23
Member 122691721-Jul-05 19:23 
GeneralRe: how to get wsdl using wse 2.0 in short Pin
4-Jul-05 3:09
suss4-Jul-05 3:09 
QuestionAre there any issues with connecting to the ORACLE 10g database through C# .Net? Pin
suvarna joshi1-Jul-05 3:16
suvarna joshi1-Jul-05 3:16 
GeneralUrgent Integration of Windows Service setup with my project Pin
ksanju10001-Jul-05 1:50
ksanju10001-Jul-05 1:50 
GeneralEvent fired on killing an application fromTaskManager Pin
manivannan.p1-Jul-05 1:44
manivannan.p1-Jul-05 1:44 
GeneralRe: Event fired on killing an application fromTaskManager Pin
Dave Kreskowiak1-Jul-05 3:46
mveDave Kreskowiak1-Jul-05 3:46 
GeneralRe: Event fired on killing an application fromTaskManager Pin
manivannan.p1-Jul-05 22:12
manivannan.p1-Jul-05 22:12 
GeneralRe: Event fired on killing an application fromTaskManager Pin
Dave Kreskowiak2-Jul-05 16:31
mveDave Kreskowiak2-Jul-05 16:31 
GeneralRational for Generics? Proposal for change Pin
Nick Hounsome1-Jul-05 0:10
Nick Hounsome1-Jul-05 0:10 
GeneralRe: Rational for Generics? Proposal for change Pin
Judah Gabriel Himango1-Jul-05 5:25
sponsorJudah Gabriel Himango1-Jul-05 5:25 
GeneralRe: Rational for Generics? Proposal for change Pin
Nick Hounsome1-Jul-05 9:26
Nick Hounsome1-Jul-05 9:26 
You miss the point - Your Pair<T> can only be instantiated with a class implementing IComparable even if, for some particular use, the IComparable part of the functionality is not required.

My class can be seen as two classes with the same name - one of which implements IComparable and one of which does not. All that is required is for the compiler to pick the right one based on the constraints. No CLR/JIT changes would be required because it would all be handled by the compiler.

You might say that you should just have two generics Pair<T> and ComparablePair<T> but, apart from the fact that this is ugly, consider generic collections: either they are restricted to IComparables or they cannot be comparable themselves so then you need Col<T> and ComparableCol<T> for every collection type and, in general, the deeper you nest generics and the more interfaces you consider the more you find that you must either give up your functionality or seriously constrain the parameters that you use.

[Obviously you can always implement IComparable and use runtime casting and throw exceptions if T isn't itself IComparable but that is inefficient, ugly and a serious cause of errors]
GeneralRe: Rational for Generics? Proposal for change Pin
Judah Gabriel Himango1-Jul-05 9:40
sponsorJudah Gabriel Himango1-Jul-05 9:40 
GeneralSOAPFormatter and &#229;&#228;&#246; Pin
Roger Alsing30-Jun-05 22:36
Roger Alsing30-Jun-05 22:36 
Generalexecute external program from a C# program Pin
StrayGrey30-Jun-05 22:23
StrayGrey30-Jun-05 22:23 
GeneralRe: execute external program from a C# program Pin
Weiye Chen30-Jun-05 22:47
Weiye Chen30-Jun-05 22:47 
GeneralRe: execute external program from a C# program Pin
StrayGrey30-Jun-05 22:49
StrayGrey30-Jun-05 22:49 
GeneralRe: execute external program from a C# program Pin
Weiye Chen30-Jun-05 23:02
Weiye Chen30-Jun-05 23:02 
GeneralRe: execute external program from a C# program Pin
StrayGrey4-Jul-05 20:56
StrayGrey4-Jul-05 20:56 
QuestionHow to get WSDL using WSE 2.0 Pin
iffi raja30-Jun-05 22:16
sussiffi raja30-Jun-05 22:16 
QuestionHow to change default Image of Cursor? Pin
pubududilena30-Jun-05 22:13
pubududilena30-Jun-05 22:13 
Generalsetting allowzerolength in an access DB with C# Pin
Anonymous30-Jun-05 22:00
Anonymous30-Jun-05 22:00 

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.