Imported Upstream version 6.6.0.89

Former-commit-id: b39a328747c2f3414dc52e009fb6f0aa80ca2492
This commit is contained in:
Xamarin Public Jenkins (auto-signing)
2019-09-24 08:53:40 +00:00
parent cf815e07e0
commit 95fdb59ea6
2556 changed files with 138145 additions and 47453 deletions

View File

@ -30,6 +30,10 @@
// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
//
#if FULL_AOT_INTERP && DISABLE_COM
#define FULL_AOT_RUNTIME
#endif
using System.Collections;
using System.Collections.Generic;
using System.Runtime.CompilerServices;
@ -62,7 +66,7 @@ namespace System.Runtime.InteropServices
{
#if !MOBILE || WINAOT
if (pUnk == IntPtr.Zero)
throw new ArgumentException ("Value cannot be null.", "pUnk");
throw new ArgumentNullException ("pUnk");
return AddRefInternal (pUnk);
#else
throw new NotImplementedException ();
@ -935,7 +939,7 @@ namespace System.Runtime.InteropServices
{
#if !MOBILE || WINAOT
if (pUnk == IntPtr.Zero)
throw new ArgumentException ("Value cannot be null.", "pUnk");
throw new ArgumentNullException ("pUnk");
return QueryInterfaceInternal (pUnk, ref iid, out ppv);
#else
throw new NotImplementedException ();
@ -1108,7 +1112,7 @@ namespace System.Runtime.InteropServices
{
#if !MOBILE || WINAOT
if (pUnk == IntPtr.Zero)
throw new ArgumentException ("Value cannot be null.", "pUnk");
throw new ArgumentNullException ("pUnk");
return ReleaseInternal (pUnk);
#else