TargetParameterCountException.cs 1.2 KB

123456789101112131415161718192021222324252627282930313233343536
  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 TargetParameterCountException : ApplicationException
  10. {
  11. public TargetParameterCountException()
  12. : base(SR.Arg_TargetParameterCountException)
  13. {
  14. HResult = HResults.COR_E_TARGETPARAMCOUNT;
  15. }
  16. public TargetParameterCountException(string message)
  17. : base(message)
  18. {
  19. HResult = HResults.COR_E_TARGETPARAMCOUNT;
  20. }
  21. public TargetParameterCountException(string message, Exception inner)
  22. : base(message, inner)
  23. {
  24. HResult = HResults.COR_E_TARGETPARAMCOUNT;
  25. }
  26. internal TargetParameterCountException(SerializationInfo info, StreamingContext context)
  27. : base(info, context)
  28. {
  29. }
  30. }
  31. }