开发者

Session - memory size of objects

开发者 https://www.devze.com 2023-02-08 04:56 出处:网络
I have a variable in the session; h开发者_运维知识库ow do I find out its size? Thanksint mySizeize = sizeof(myVariable);

I have a variable in the session; h开发者_运维知识库ow do I find out its size?

Thanks


int mySizeize = sizeof(myVariable);

will not work for reference type

or Marshal.SizeOf Method (Object)

http://msdn.microsoft.com/en-us/library/y3ybkfb3.aspx

0

精彩评论

暂无评论...
验证码 换一张
取 消