大小__数组/结构体等的大小

1、

Rectangle rt = new Rectangle();
MessageBox.Show(Marshal.SizeOf(rt).ToString());

 

2、sizeof

  不会用...

 

3、

 

posted @ 2016-06-02 13:42  csskill  阅读(192)  评论(0编辑  收藏  举报