public void PopulateUser(User user) { var nativeUser = new NativeUser(); NativeCode.bugsnag_populateUser(ref nativeUser); user.Id = Marshal.PtrToStringAuto(nativeUser.Id); }
internal static extern void bugsnag_populateUser(ref NativeUser user);