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

C#

 
GeneralRe: what is the size of reference variable Pin
Mogaambo13-May-09 23:29
Mogaambo13-May-09 23:29 
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 
Luc Pattyn wrote:
So, assuming that is correct, the smallest object costs 32B of heap space.


At the risk of really being quite boring, I was playing around with that the other day, trying to work out how much space a boolean takes as a class member variable.

Turns out the first one takes 32 bits, the second no bits, the third no bits, the fourth no bits, the fifth 32 again, etc. etc.

So, sort of one byte collectively rounded up to the nearest 32 bit word.

Regards,
Rob Philpott.

GeneralRe: what is the size of reference variable Pin
Luc Pattyn14-May-09 2:22
sitebuilderLuc Pattyn14-May-09 2:22 
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 

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.