Click here to Skip to main content
15,913,233 members
Home / Discussions / C#
   

C#

 
GeneralRe: DataType size in DataTable Pin
machocr11-May-05 6:39
machocr11-May-05 6:39 
GeneralUsing Cadlib with C# Pin
Reanalyse10-May-05 10:32
Reanalyse10-May-05 10:32 
GeneralRe: Using Cadlib with C# Pin
Reanalyse10-May-05 17:28
Reanalyse10-May-05 17:28 
GeneralRe: Using Cadlib with C# Pin
Reanalyse10-May-05 17:35
Reanalyse10-May-05 17:35 
GeneralRe: Using Cadlib with C# Pin
Reanalyse10-May-05 17:58
Reanalyse10-May-05 17:58 
GeneralRe: Using Cadlib with C# Pin
rrace26-Dec-08 8:03
rrace26-Dec-08 8:03 
GeneralRe: Using Cadlib with C# Pin
Reanalyse26-Dec-08 10:42
Reanalyse26-Dec-08 10:42 
QuestionComparing types of objects??? Pin
pankazmittal10-May-05 10:10
pankazmittal10-May-05 10:10 
Hi
In the following code, I am trying to compare the type of object in obj variable with type of typeInt.

int typeInt=0;
int a = 1;
object obj;

obj = (object) a;
if (typeInt.GetType() == obj.GetType())
{
MessageBox.Show("Int returned");
}


I want to make sure if this is the correct way to do it. If not, how else I compare types of two objects?

Please advice. Thanks

Pankaj
AnswerRe: Comparing types of objects??? Pin
Robert Rohde10-May-05 11:25
Robert Rohde10-May-05 11:25 
GeneralReferencing in MultiProjects Pin
Soumya Mulukutla10-May-05 9:56
Soumya Mulukutla10-May-05 9:56 
GeneralRe: Referencing in MultiProjects Pin
S. Senthil Kumar10-May-05 20:12
S. Senthil Kumar10-May-05 20:12 
GeneralRe: Referencing in MultiProjects Pin
Soumya Mulukutla11-May-05 3:57
Soumya Mulukutla11-May-05 3:57 
GeneralNet Camera Pin
lindiwe10-May-05 9:26
lindiwe10-May-05 9:26 
GeneralRe: Net Camera Pin
Judah Gabriel Himango10-May-05 11:48
sponsorJudah Gabriel Himango10-May-05 11:48 
QuestionWhat's the weak point of using static function? Pin
Blue_Skye10-May-05 9:12
Blue_Skye10-May-05 9:12 
AnswerRe: What's the weak point of using static function? Pin
Nick Parker10-May-05 11:25
protectorNick Parker10-May-05 11:25 
AnswerRe: What's the weak point of using static function? Pin
Robert Rohde10-May-05 11:29
Robert Rohde10-May-05 11:29 
GeneralRe: What's the weak point of using static function? Pin
Blue_Skye11-May-05 6:25
Blue_Skye11-May-05 6:25 
GeneralC#, Services, and Application Path Pin
Wackatronic110-May-05 8:48
Wackatronic110-May-05 8:48 
GeneralRe: C#, Services, and Application Path Pin
Wackatronic110-May-05 11:20
Wackatronic110-May-05 11:20 
Generaldetecting an internet connection Pin
Mridang Agarwalla10-May-05 6:42
Mridang Agarwalla10-May-05 6:42 
GeneralRe: detecting an internet connection Pin
Judah Gabriel Himango10-May-05 11:43
sponsorJudah Gabriel Himango10-May-05 11:43 
GeneralNot tested yet but currently in development. BTW: Not 100% accurate by design. Pin
Uwe Keim10-May-05 17:50
sitebuilderUwe Keim10-May-05 17:50 
Generaldrag and drop Pin
Mridang Agarwalla10-May-05 6:39
Mridang Agarwalla10-May-05 6:39 
GeneralRe: drag and drop Pin
Judah Gabriel Himango10-May-05 7:54
sponsorJudah Gabriel Himango10-May-05 7:54 

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.