[System] Removal of the NET_2_0 in the source code
[mono.git] / mcs / class / System / System.IO.Ports / SerialPort.cs
index b5ac97e046eea1c8bbc656844f3ae557a0271a4e..4dff4ca7540f87eed14ad5be1a3b5fee2f26e528 100644 (file)
@@ -17,8 +17,6 @@
 //     reads 
 //
 
-#if NET_2_0
-
 using System;
 using System.Collections.Generic;
 using System.ComponentModel;
@@ -388,7 +386,7 @@ namespace System.IO.Ports
                                return read_timeout;
                        }
                        set {
-                               if (value <= 0 && value != InfiniteTimeout)
+                               if (value < 0 && value != InfiniteTimeout)
                                        throw new ArgumentOutOfRangeException ("value");
 
                                if (is_open)
@@ -476,7 +474,7 @@ namespace System.IO.Ports
                                return write_timeout;
                        }
                        set {
-                               if (value <= 0 && value != InfiniteTimeout)
+                               if (value < 0 && value != InfiniteTimeout)
                                        throw new ArgumentOutOfRangeException ("value");
 
                                if (is_open)
@@ -807,4 +805,3 @@ namespace System.IO.Ports
 
 }
 
-#endif