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

C#

 
QuestionSubscribing to monitor wake-up Pin
royk12316-Aug-06 23:38
royk12316-Aug-06 23:38 
QuestionXmlDataSource vs DataSource Pin
Malcolm Smart16-Aug-06 23:37
Malcolm Smart16-Aug-06 23:37 
AnswerRe: XmlDataSource vs DataSource Pin
hamidreza_buddy17-Aug-06 1:07
hamidreza_buddy17-Aug-06 1:07 
AnswerRe: XmlDataSource vs DataSource Pin
Malcolm Smart17-Aug-06 1:39
Malcolm Smart17-Aug-06 1:39 
QuestionSystem.Net.WebException Pin
Will Manning16-Aug-06 23:16
Will Manning16-Aug-06 23:16 
QuestionConnect to internt using C# Pin
Mridang Agarwalla16-Aug-06 23:16
Mridang Agarwalla16-Aug-06 23:16 
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 
Dear gurus,

I have a generics question.


// T is either Int32 or Double
void fkt<T>( ref T someValue ) where T : IConvertible
{

Int32 i = 5;

someValue = i; <---- compiler error here
someValue = (T)i; <---- compiler error here

}



In both cases I get a type conversion error

How can I handle this? I know in advance, that T is only Int32 or Double.


Thanks for your help


-- modified at 4:58 Thursday 17th August, 2006
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 
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 

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.