Imported Upstream version 6.4.0.137

Former-commit-id: 943baa9f16a098c33e129777827f3a9d20da00d6
This commit is contained in:
Xamarin Public Jenkins (auto-signing)
2019-07-26 19:53:28 +00:00
parent e9207cf623
commit ef583813eb
2712 changed files with 74169 additions and 40587 deletions

View File

@@ -27,6 +27,7 @@ namespace System
{
internal const int S_OK = unchecked((int)0x00000000);
internal const int COR_E_ABANDONEDMUTEX = unchecked((int)0x8013152D);
internal const int COR_E_AMBIGUOUSIMPLEMENTATION = unchecked((int)0x8013106A);
internal const int COR_E_AMBIGUOUSMATCH = unchecked((int)0x8000211D);
internal const int COR_E_APPDOMAINUNLOADED = unchecked((int)0x80131014);
internal const int COR_E_APPLICATION = unchecked((int)0x80131600);

View File

@@ -0,0 +1,36 @@
// Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
// See the LICENSE file in the project root for more information.
using System.Globalization;
using System.Runtime.Serialization;
namespace System.Runtime
{
[Serializable]
public sealed class AmbiguousImplementationException : Exception
{
public AmbiguousImplementationException()
: base(SR.AmbiguousImplementationException_NullMessage)
{
HResult = HResults.COR_E_AMBIGUOUSIMPLEMENTATION;
}
public AmbiguousImplementationException(string message)
: base(message)
{
HResult = HResults.COR_E_AMBIGUOUSIMPLEMENTATION;
}
public AmbiguousImplementationException(string message, Exception innerException)
: base(message, innerException)
{
HResult = HResults.COR_E_AMBIGUOUSIMPLEMENTATION;
}
private AmbiguousImplementationException(SerializationInfo info, StreamingContext context)
: base(info, context)
{
}
}
}

View File

@@ -1 +1 @@
8c132237e4c63e874b0657983009aae57d87c15c
f161741e3e3a34ba18609f8daeb2af46bf6eda60

View File

@@ -16,7 +16,7 @@ namespace System.Threading
/// <remarks>
/// To unregister a callback, dispose the corresponding Registration instance.
/// </remarks>
public readonly struct CancellationTokenRegistration : IEquatable<CancellationTokenRegistration>, IDisposable
public readonly partial struct CancellationTokenRegistration : IEquatable<CancellationTokenRegistration>, IDisposable
{
private readonly CancellationCallbackInfo m_callbackInfo;
private readonly SparselyPopulatedArrayAddInfo<CancellationCallbackInfo> m_registrationInfo;