File: src\libraries\System.Private.CoreLib\src\System\Reflection\AmbiguousMatchException.cs
Web Access
Project: src\src\coreclr\System.Private.CoreLib\System.Private.CoreLib.csproj (System.Private.CoreLib)
// Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
 
using System.Runtime.CompilerServices;
using System.Runtime.Serialization;
 
namespace System.Reflection
{
    [Serializable]
    [TypeForwardedFrom("mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089")]
    public sealed class AmbiguousMatchException : SystemException
    {
        public AmbiguousMatchException()
            : base(SR.Arg_AmbiguousMatchException_NoMessage)
        {
            HResult = HResults.COR_E_AMBIGUOUSMATCH;
        }
 
        public AmbiguousMatchException(string? message)
            : base(message ?? SR.Arg_AmbiguousMatchException_NoMessage)
        {
            HResult = HResults.COR_E_AMBIGUOUSMATCH;
        }
 
        public AmbiguousMatchException(string? message, Exception? inner)
            : base(message ?? SR.Arg_AmbiguousMatchException_NoMessage, inner)
        {
            HResult = HResults.COR_E_AMBIGUOUSMATCH;
        }
 
        [Obsolete(Obsoletions.LegacyFormatterImplMessage, DiagnosticId = Obsoletions.LegacyFormatterImplDiagId, UrlFormat = Obsoletions.SharedUrlFormat)]
        private AmbiguousMatchException(SerializationInfo info, StreamingContext context) : base(info, context)
        {
        }
    }
}