C
Claire
Hi 
I thought chars were unicode nowadays. If so then why does the following
return 1 as size of the struct please.
using System.Runtime.InteropServices;
public struct s
{
public char j;
}
private void Form1_Load(object sender, EventArgs e)
{
s ss = new s();
Text = Marshal.SizeOf(ss).ToString();
}

I thought chars were unicode nowadays. If so then why does the following
return 1 as size of the struct please.
using System.Runtime.InteropServices;
public struct s
{
public char j;
}
private void Form1_Load(object sender, EventArgs e)
{
s ss = new s();
Text = Marshal.SizeOf(ss).ToString();
}