[corlib] Defer TypeInfo instantiation logic in DefinedTypes. Fixes #19082
[mono.git] / mcs / class / corlib / System.Reflection / TargetParameterCountException.cs
index 1dce62e79e9adc6569a359142b4e4ef8ff77c070..deb5344e1576e5f078409a2f3633face0e2a0bd2 100644 (file)
@@ -35,12 +35,13 @@ using System.Runtime.InteropServices;
 
 namespace System.Reflection
 {
-#if NET_2_0
        [ComVisible (true)]
-#endif
        [Serializable]
-       public sealed class TargetParameterCountException : ApplicationException
-       {
+#if NET_2_1
+       public sealed class TargetParameterCountException : Exception {
+#else
+       public sealed class TargetParameterCountException : ApplicationException {
+#endif
                public TargetParameterCountException ()
                        : base (Locale.GetText ("Number of parameter does not match expected count."))
                {