2 using System.Runtime.InteropServices;
7 [return: MarshalAs(UnmanagedType.LPWStr)]
8 private static extern string test_lpwstr_marshal(
9 [MarshalAs(UnmanagedType.LPWStr)] string s,
13 public static int Main () {
17 Console.WriteLine(s.Length);
18 string res = test_lpwstr_marshal (s, s.Length);
20 Console.WriteLine (res);