2 using System
.Runtime
.InteropServices
;
4 [module
: DefaultCharSet (CharSet
.Unicode
)]
12 [StructLayout(LayoutKind
.Sequential
, CharSet
=CharSet
.Auto
)]
16 [UnmanagedFunctionPointer (CallingConvention
.Cdecl
)]
27 public static extern void test ();
31 DllImportAttribute dia
= Attribute
.GetCustomAttribute (typeof (Program
).GetMethod ("test"), typeof (DllImportAttribute
)) as DllImportAttribute
;
35 if (dia
.CharSet
!= CharSet
.Unicode
)
38 if (!typeof (C
).IsUnicodeClass
)
41 if (!typeof (C
.CC
).IsUnicodeClass
)
44 if (!typeof (D
).IsUnicodeClass
)
47 if (!typeof (E
).IsUnicodeClass
)
50 if (!typeof (foo1
).IsUnicodeClass
)
53 if (!typeof (foo2
).IsAutoClass
)