AmbiguousMatchException.cs 1.1 KB

1234567891011121314151617181920212223242526272829303132333435
  1. // Licensed to the .NET Foundation under one or more agreements.
  2. // The .NET Foundation licenses this file to you under the MIT license.
  3. // See the LICENSE file in the project root for more information.
  4. using System.Runtime.Serialization;
  5. namespace System.Reflection
  6. {
  7. [Serializable]
  8. [System.Runtime.CompilerServices.TypeForwardedFrom("mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089")]
  9. public sealed class AmbiguousMatchException : SystemException
  10. {
  11. public AmbiguousMatchException()
  12. : base(SR.RFLCT_Ambiguous)
  13. {
  14. HResult = HResults.COR_E_AMBIGUOUSMATCH;
  15. }
  16. public AmbiguousMatchException(string message)
  17. : base(message)
  18. {
  19. HResult = HResults.COR_E_AMBIGUOUSMATCH;
  20. }
  21. public AmbiguousMatchException(string message, Exception inner)
  22. : base(message, inner)
  23. {
  24. HResult = HResults.COR_E_AMBIGUOUSMATCH;
  25. }
  26. internal AmbiguousMatchException(SerializationInfo info, StreamingContext context) : base(info, context)
  27. {
  28. }
  29. }
  30. }