using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;
// Marshal 域名空间
using System.Runtime.InteropServices;
namespace WindowsFormsApplication3
{
public partial class Form1 : Form
{
public Form1()
{
InitializeComponent();
}
private void Form1_Load(object sender, EventArgs e)
{
int num_Size = sizeof(Int32);// 16->2,32->4,64->8
SetText("Int32 Size sizeof =" + num_Size);
People pp = new People();
// Marshal.SizeOf用于引用类型,非托管