예제 #1
0
 public void Dispose()
 {
     if (_s != IntPtr.Zero)
     {
         NativeWinRTMethods.WindowsDeleteString(_s);
         _s = IntPtr.Zero;
     }
 }
예제 #2
0
 public HStringInterop(string s)
 {
     _s = s == null ? IntPtr.Zero : NativeWinRTMethods.WindowsCreateString(s);
 }