char[] c=new char[2];
c[0]='1';
c[1]='2';
unsafe{
void *p;
fixed (char *pc=&c[0])
p=(void *)pc;
IntPtr ptr=new IntPtr(p);
}