Click here to Skip to main content
15,891,136 members
Home / Discussions / C#
   

C#

 
GeneralRe: what is the size of reference variable Pin
Pete O'Hanlon14-May-09 2:17
mvePete O'Hanlon14-May-09 2:17 
AnswerRe: what is the size of reference variable Pin
Rob Philpott14-May-09 0:19
Rob Philpott14-May-09 0:19 
GeneralRe: what is the size of reference variable Pin
Luc Pattyn14-May-09 0:42
sitebuilderLuc Pattyn14-May-09 0:42 
GeneralRe: what is the size of reference variable Pin
Rob Philpott14-May-09 0:44
Rob Philpott14-May-09 0:44 
GeneralRe: what is the size of reference variable Pin
Rob Philpott14-May-09 0:49
Rob Philpott14-May-09 0:49 
GeneralRe: what is the size of reference variable Pin
Luc Pattyn14-May-09 1:55
sitebuilderLuc Pattyn14-May-09 1:55 
GeneralRe: what is the size of reference variable Pin
Rob Philpott14-May-09 2:10
Rob Philpott14-May-09 2:10 
GeneralRe: what is the size of reference variable Pin
Luc Pattyn14-May-09 2:22
sitebuilderLuc Pattyn14-May-09 2:22 
No surprise here. That is due to padding (inserting unused bytes, or rounding up the address), exactly like what happens when storing bytes in a C/C++/C# structure. By default elements of a struct (and the overall size of a struct) get word-aligned to prevent an access to the next 16-bit or larger quantity to cause a performance hit or an exception.

Smile | :)

Luc Pattyn [Forum Guidelines] [My Articles]

The quality and detail of your question reflects on the effectiveness of the help you are likely to get.
Show formatted code inside PRE tags, and give clear symptoms when describing a problem.

GeneralRe: what is the size of reference variable Pin
Rob Philpott14-May-09 2:23
Rob Philpott14-May-09 2:23 
GeneralRe: what is the size of reference variable Pin
Member 103390714-May-09 1:54
Member 103390714-May-09 1:54 
GeneralRe: what is the size of reference variable Pin
Luc Pattyn14-May-09 2:08
sitebuilderLuc Pattyn14-May-09 2:08 
QuestionDrag email of Outlook Express to Winform and Save to file .eml Pin
nv_thien13-May-09 22:58
nv_thien13-May-09 22:58 
AnswerRe: Drag email of Outlook Express to Winform and Save to file .eml Pin
IrishWizKid17-Jul-09 5:40
IrishWizKid17-Jul-09 5:40 
QuestionC# TCP LOOP HELP!!! Pin
Serpendiem13-May-09 22:28
Serpendiem13-May-09 22:28 
AnswerRe: C# TCP LOOP HELP!!! Pin
OsoreWatashi13-May-09 22:50
OsoreWatashi13-May-09 22:50 
GeneralRe: C# TCP LOOP HELP!!! Pin
Serpendiem13-May-09 22:57
Serpendiem13-May-09 22:57 
AnswerRe: C# TCP LOOP HELP!!! Pin
Rob Philpott14-May-09 0:15
Rob Philpott14-May-09 0:15 
AnswerRe: C# TCP LOOP HELP!!! Pin
Programm3r14-May-09 1:13
Programm3r14-May-09 1:13 
QuestionAdd spaces to large numbers Pin
Deques13-May-09 22:20
Deques13-May-09 22:20 
AnswerRe: Add spaces to large numbers Pin
OsoreWatashi13-May-09 22:44
OsoreWatashi13-May-09 22:44 
GeneralRe: Add spaces to large numbers Pin
Deques13-May-09 23:01
Deques13-May-09 23:01 
GeneralRe: Add spaces to large numbers Pin
Mycroft Holmes13-May-09 23:14
professionalMycroft Holmes13-May-09 23:14 
GeneralRe: Add spaces to large numbers Pin
molesworth13-May-09 23:07
molesworth13-May-09 23:07 
QuestionExecuting a file from a Stream Pin
OsoreWatashi13-May-09 22:10
OsoreWatashi13-May-09 22:10 
AnswerRe: Executing a file from a Stream Pin
Dave Kreskowiak14-May-09 2:06
mveDave Kreskowiak14-May-09 2:06 

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.