Click here to Skip to main content
15,867,141 members
Home / Discussions / C#
   

C#

 
AnswerRe: Connect to internt using C# Pin
Nader Elshehabi17-Aug-06 1:44
Nader Elshehabi17-Aug-06 1:44 
QuestionGenerics: T x = 5 fails [modified] Pin
Tomerland16-Aug-06 22:57
Tomerland16-Aug-06 22:57 
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 
Hello

Christian Graus wrote:
It looks to me like it's not possible


I believe it is. This method should only work with int and double types only

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


RegardsRose | [Rose]
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 
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 

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.