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

C#

 
AnswerRe: Generics: T x = 5 fails Pin
Christian Graus16-Aug-06 23:05
protectorChristian Graus16-Aug-06 23:05 
GeneralRe: Generics: T x = 5 fails Pin
Tomerland17-Aug-06 0:30
Tomerland17-Aug-06 0:30 
GeneralRe: Generics: T x = 5 fails Pin
Christian Graus17-Aug-06 0:37
protectorChristian Graus17-Aug-06 0:37 
GeneralRe: Generics: T x = 5 fails [modified] Pin
Tomerland17-Aug-06 1:27
Tomerland17-Aug-06 1:27 
GeneralRe: Generics: T x = 5 fails Pin
Christian Graus17-Aug-06 1:40
protectorChristian Graus17-Aug-06 1:40 
GeneralRe: Generics: T x = 5 fails Pin
Nader Elshehabi17-Aug-06 2:07
Nader Elshehabi17-Aug-06 2:07 
GeneralRe: Generics: T x = 5 fails Pin
Christian Graus17-Aug-06 2:15
protectorChristian Graus17-Aug-06 2:15 
GeneralRe: Generics: T x = 5 fails [modified] Pin
Nader Elshehabi17-Aug-06 2:39
Nader Elshehabi17-Aug-06 2:39 
Hello

Actually there was an error due to CP script. Sorry I have to remove the pre tag. Here is the correct code

private void CreateMethod<T>() where T : IComparable<int> , IComparable<double>, new()
{
T instance = new T();
MessageBox.Show(instance.ToString());
}


and why you call the new() redundant?? How would you declare your types in the method otherwise??


RegardsRose | [Rose]


-- modified at 8:41 Thursday 17th August, 2006
GeneralRe: Generics: T x = 5 fails Pin
Christian Graus17-Aug-06 2:47
protectorChristian Graus17-Aug-06 2:47 
GeneralRe: Generics: T x = 5 fails Pin
eggsovereasy17-Aug-06 4:02
eggsovereasy17-Aug-06 4:02 
QuestionEnterprise deployment console Pin
abhinish16-Aug-06 22:39
abhinish16-Aug-06 22:39 
QuestionClasses [modified] Pin
Mamphekgo16-Aug-06 22:03
Mamphekgo16-Aug-06 22:03 
AnswerRe: Classes Pin
Guffa16-Aug-06 22:13
Guffa16-Aug-06 22:13 
QuestionHow create uninstal project? Pin
ersinsivaz16-Aug-06 21:49
ersinsivaz16-Aug-06 21:49 
AnswerRe: How create uninstal project? Pin
Nader Elshehabi17-Aug-06 1:49
Nader Elshehabi17-Aug-06 1:49 
QuestionServer Image Path Pin
nachisaravanan16-Aug-06 21:45
nachisaravanan16-Aug-06 21:45 
AnswerRe: Server Image Path Pin
Christian Graus16-Aug-06 21:47
protectorChristian Graus16-Aug-06 21:47 
GeneralRe: Server Image Path Pin
nachisaravanan16-Aug-06 22:26
nachisaravanan16-Aug-06 22:26 
GeneralRe: Server Image Path Pin
Christian Graus16-Aug-06 22:35
protectorChristian Graus16-Aug-06 22:35 
AnswerRe: Server Image Path Pin
Guffa16-Aug-06 22:19
Guffa16-Aug-06 22:19 
GeneralRe: Server Image Path Pin
nachisaravanan16-Aug-06 22:28
nachisaravanan16-Aug-06 22:28 
QuestionSending pdf file directly to printer Pin
Support12316-Aug-06 21:34
Support12316-Aug-06 21:34 
QuestionUsing Flat Files with NHibernate Pin
rakesh.motghare16-Aug-06 21:26
rakesh.motghare16-Aug-06 21:26 
Questionhow to use ListView Control in C#.net? Pin
yousafzai16-Aug-06 21:05
yousafzai16-Aug-06 21:05 
AnswerRe: how to use ListView Control in C#.net? Pin
coolestCoder16-Aug-06 21:19
coolestCoder16-Aug-06 21:19 

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.