Click here to Skip to main content
15,888,351 members
Home / Discussions / C#
   

C#

 
Questionconfiguring usb to rs-232 converter Pin
Faysal14-Dec-08 16:38
Faysal14-Dec-08 16:38 
AnswerRe: configuring usb to rs-232 converter Pin
Phil J Pearson15-Dec-08 3:15
Phil J Pearson15-Dec-08 3:15 
QuestionHow do I print the address of a reference? Pin
Shao Voon Wong14-Dec-08 16:19
mvaShao Voon Wong14-Dec-08 16:19 
AnswerRe: How do I print the address of a reference? Pin
Christian Graus14-Dec-08 17:18
protectorChristian Graus14-Dec-08 17:18 
GeneralRe: How do I print the address of a reference? Pin
Shao Voon Wong15-Dec-08 14:00
mvaShao Voon Wong15-Dec-08 14:00 
AnswerRe: How do I print the address of a reference? Pin
dan!sh 14-Dec-08 17:21
professional dan!sh 14-Dec-08 17:21 
GeneralRe: How do I print the address of a reference? Pin
Shao Voon Wong15-Dec-08 14:06
mvaShao Voon Wong15-Dec-08 14:06 
AnswerRe: How do I print the address of a reference? Pin
Guffa14-Dec-08 20:47
Guffa14-Dec-08 20:47 
Wong Shao Voon wrote:
I want to know if the objects are the same or not by comparing the addresses of the references.


if (object.ReferenceEquals(object1, object2)) ...

Wong Shao Voon wrote:
How do I print the address of a reference?


You could get a pointer to the object, convert the pointer to an IntPtr, which you can convert to an Int64, and display the value. However, you either would have to keep the object pinned (which is bad for memory management), or continuously update the display to show any changes, as the garbage collector can move the object at any time.

Despite everything, the person most likely to be fooling you next is yourself.

GeneralRe: How do I print the address of a reference? Pin
Shao Voon Wong15-Dec-08 14:00
mvaShao Voon Wong15-Dec-08 14:00 
QuestionHow to create a jagged array of multiple data-type data? Pin
LightIceStorm14-Dec-08 14:41
LightIceStorm14-Dec-08 14:41 
AnswerRe: How to create a jagged array of multiple data-type data? Pin
Colin Angus Mackay14-Dec-08 14:48
Colin Angus Mackay14-Dec-08 14:48 
GeneralRe: How to create a jagged array of multiple data-type data? Pin
Luc Pattyn14-Dec-08 15:08
sitebuilderLuc Pattyn14-Dec-08 15:08 
AnswerRe: How to create a jagged array of multiple data-type data? [modified] Pin
Guffa14-Dec-08 15:44
Guffa14-Dec-08 15:44 
GeneralRe: How to create a jagged array of multiple data-type data? Pin
Mycroft Holmes14-Dec-08 19:26
professionalMycroft Holmes14-Dec-08 19:26 
GeneralRe: How to create a jagged array of multiple data-type data? Pin
LightIceStorm15-Dec-08 9:57
LightIceStorm15-Dec-08 9:57 
GeneralRe: How to create a jagged array of multiple data-type data? Pin
Guffa15-Dec-08 12:03
Guffa15-Dec-08 12:03 
QuestionLoading Multiple Images to a Picture Box Pin
User 543536414-Dec-08 14:19
User 543536414-Dec-08 14:19 
AnswerRe: Loading Multiple Images to a Picture Box Pin
Christian Graus14-Dec-08 17:17
protectorChristian Graus14-Dec-08 17:17 
GeneralRe: Loading Multiple Images to a Picture Box Pin
User 543536414-Dec-08 17:30
User 543536414-Dec-08 17:30 
GeneralRe: Loading Multiple Images to a Picture Box Pin
Lev Danielyan14-Dec-08 19:16
Lev Danielyan14-Dec-08 19:16 
QuestionC# Xml struggles Pin
lszanto14-Dec-08 12:56
lszanto14-Dec-08 12:56 
AnswerRe: C# Xml struggles Pin
lszanto14-Dec-08 12:58
lszanto14-Dec-08 12:58 
AnswerRe: C# Xml struggles Pin
Colin Angus Mackay14-Dec-08 14:20
Colin Angus Mackay14-Dec-08 14:20 
GeneralRe: C# Xml struggles Pin
lszanto14-Dec-08 14:33
lszanto14-Dec-08 14:33 
QuestionForm turning into component Pin
kod3brkr14-Dec-08 12:41
kod3brkr14-Dec-08 12: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.