Click here to Skip to main content
15,886,919 members
Home / Discussions / C#
   

C#

 
AnswerRe: Will C# support primitive data type in Generics Pin
DaveyM6922-Jul-09 3:31
professionalDaveyM6922-Jul-09 3:31 
GeneralRe: Will C# support primitive data type in Generics Pin
Gopal_Kanchana22-Jul-09 3:34
Gopal_Kanchana22-Jul-09 3:34 
GeneralRe: Will C# support primitive data type in Generics Pin
DaveyM6922-Jul-09 3:44
professionalDaveyM6922-Jul-09 3:44 
AnswerRe: Will C# support primitive data type in Generics Pin
stancrm22-Jul-09 3:43
stancrm22-Jul-09 3:43 
GeneralRe: Will C# support primitive data type in Generics Pin
Gopal_Kanchana22-Jul-09 19:25
Gopal_Kanchana22-Jul-09 19:25 
AnswerRe: Will C# support primitive data type in Generics PinPopular
Daniel Grunwald22-Jul-09 4:12
Daniel Grunwald22-Jul-09 4:12 
GeneralRe: Will C# support primitive data type in Generics Pin
Luc Pattyn22-Jul-09 4:22
sitebuilderLuc Pattyn22-Jul-09 4:22 
GeneralRe: Will C# support primitive data type in Generics Pin
Daniel Grunwald22-Jul-09 4:41
Daniel Grunwald22-Jul-09 4:41 
But multiple constraints mean the type T must implement all of those.
There is no way to say "int OR float" (which would have to automatically generate an interface with all methods common between int and float).
But unfortunately, .NET doesn't support 'dynamic interfaces' (you declare an interface, and all classes having the appropriate methods will automatically implement it). Actually, I think VB10 will have something dynamic interfaces, but I guess it'll be implemented on top of Reflection/the DLR.
GeneralRe: Will C# support primitive data type in Generics Pin
Luc Pattyn22-Jul-09 4:51
sitebuilderLuc Pattyn22-Jul-09 4:51 
GeneralRe: Will C# support primitive data type in Generics Pin
PIEBALDconsult22-Jul-09 5:11
mvePIEBALDconsult22-Jul-09 5:11 
GeneralRe: Will C# support primitive data type in Generics Pin
DaveyM6922-Jul-09 5:28
professionalDaveyM6922-Jul-09 5:28 
GeneralRe: Will C# support primitive data type in Generics Pin
PIEBALDconsult22-Jul-09 6:19
mvePIEBALDconsult22-Jul-09 6:19 
QuestionSplitContainer problem Pin
lune1222-Jul-09 3:21
lune1222-Jul-09 3:21 
AnswerRe: SplitContainer problem Pin
Muhammad Mazhar22-Jul-09 3:55
Muhammad Mazhar22-Jul-09 3:55 
GeneralRe: SplitContainer problem Pin
lune1222-Jul-09 4:04
lune1222-Jul-09 4:04 
GeneralRe: SplitContainer problem Pin
Muhammad Mazhar22-Jul-09 4:22
Muhammad Mazhar22-Jul-09 4:22 
Questionhow to get datagrid previously selected column index in c#.net Pin
swetha_insoft22-Jul-09 3:14
swetha_insoft22-Jul-09 3:14 
AnswerRe: how to get datagrid previously selected column index in c#.net Pin
swetha_insoft22-Jul-09 3:18
swetha_insoft22-Jul-09 3:18 
AnswerRe: how to get datagrid previously selected column index in c#.net Pin
Muhammad Mazhar22-Jul-09 3:52
Muhammad Mazhar22-Jul-09 3:52 
QuestionTCP Window Scaling Pin
satsumatable22-Jul-09 2:16
satsumatable22-Jul-09 2:16 
AnswerRe: TCP Window Scaling Pin
led mike22-Jul-09 4:35
led mike22-Jul-09 4:35 
QuestionUser control problem in databind Pin
beesan22-Jul-09 2:05
beesan22-Jul-09 2:05 
AnswerRe: User control problem in databind Pin
Nagy Vilmos22-Jul-09 3:11
professionalNagy Vilmos22-Jul-09 3:11 
GeneralRe: User control problem in databind Pin
beesan22-Jul-09 20:09
beesan22-Jul-09 20:09 
QuestionHow to Save word file using SaveDialogBox and File Stream Pin
mandar77722-Jul-09 1:41
mandar77722-Jul-09 1:41 

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.