/// <summary> /// /// </summary> /// <param name="message"></param> /// <param name="resultString"></param> static void EchoHelper([MarshalAs(UnmanagedType.LPWStr)] string message, IntPtr resultString) { var echoResult = LicenseUtils.Echo(message); UnsafeNativeMethods.ON_wString_Set(resultString, echoResult); }