Incorrect warning message on thread pool startup in full AOT:ed Windows build.
[mono.git] / mcs / class / System / System.Net.NetworkInformation / NetworkInformationException.cs
index 95720f5b8ed808a08735c4974c0e75673a403858..0770801732cea4155b7afbbd9466ee02564a7beb 100644 (file)
 // OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
 // WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
 //
-#if NET_2_0
 using System.ComponentModel;
 using System.Runtime.Serialization;
 
 namespace System.Net.NetworkInformation {
        [Serializable]
-       public class NetworkInformationException : Win32Exception {
+       public class NetworkInformationException
+#if !NET_2_1
+               : Win32Exception
+#else
+               : Exception
+#endif
+       {
                int error_code;
                
                public NetworkInformationException ()
                {
                }
 
+#if !NET_2_1
                public NetworkInformationException (int errorCode) : base (errorCode)
                {
                }
+#else
+               public NetworkInformationException (int errorCode)
+               {
+                       error_code = errorCode;
+               }
+#endif
 
+#if !NET_2_1
                protected NetworkInformationException (SerializationInfo info, StreamingContext context)
                        : base (info, context)
                {
                        error_code = info.GetInt32 ("ErrorCode");
                }
+#endif
 
-               public override int ErrorCode {
+               public
+#if !NET_2_1
+               override
+#endif
+               int ErrorCode {
                        get { return error_code; }
                }
        }
 }
-#endif