* TargetException.cs, TargetInvocationException.cs, TargetParameterCountException.cs: Inherit from Exception for NET_2_1 since ApplicationException does not exists svn path=/trunk/mcs/; revision=142256
@@ -1,3 +1,9 @@
+2009-09-19 Sebastien Pouliot <[email protected]>
+
+ * TargetException.cs, TargetInvocationException.cs,
+ TargetParameterCountException.cs: Inherit from Exception for
+ NET_2_1 since ApplicationException does not exists
2009-09-18 Sebastien Pouliot <[email protected]>
* Assembly.cs, Module.cs: Avoid imperative CAS checks for NET_2_1
@@ -39,8 +39,11 @@ namespace System.Reflection
[ComVisible (true)]
#endif
[Serializable]
- public class TargetException : ApplicationException
- {
+#if NET_2_1
+ public class TargetException : Exception {
+#else
+ public class TargetException : ApplicationException {
+#endif
public TargetException ()
: base (Locale.GetText ("Unable to invoke an invalid target."))
{
@@ -38,8 +38,11 @@ namespace System.Reflection
- public sealed class TargetInvocationException : ApplicationException
+ public sealed class TargetInvocationException : Exception {
+ public sealed class TargetInvocationException : ApplicationException {
public TargetInvocationException (Exception inner)
: base ("Exception has been thrown by the target of an invocation.", inner)
- public sealed class TargetParameterCountException : ApplicationException
+ public sealed class TargetParameterCountException : Exception {
+ public sealed class TargetParameterCountException : ApplicationException {
public TargetParameterCountException ()
: base (Locale.GetText ("Number of parameter does not match expected count."))