Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mono/mono.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMiguel de Icaza <miguel@gnome.org>2006-12-28 04:03:29 +0300
committerMiguel de Icaza <miguel@gnome.org>2006-12-28 04:03:29 +0300
commit40d14c161e44f7541734ede8276c1d85abc4aa0f (patch)
tree64a7d9a50bbcbe9971457e665b355bca7f5ead34 /mcs/class/System/System.IO.Ports/SerialPort.cs
parent121c3081e2d0f5da50de7b3b4d6706c9b8485b25 (diff)
To improve Moma Reports
svn path=/trunk/mcs/; revision=70150
Diffstat (limited to 'mcs/class/System/System.IO.Ports/SerialPort.cs')
-rw-r--r--mcs/class/System/System.IO.Ports/SerialPort.cs7
1 files changed, 6 insertions, 1 deletions
diff --git a/mcs/class/System/System.IO.Ports/SerialPort.cs b/mcs/class/System/System.IO.Ports/SerialPort.cs
index 3955b6ef6f8..0873f0fbb54 100644
--- a/mcs/class/System/System.IO.Ports/SerialPort.cs
+++ b/mcs/class/System/System.IO.Ports/SerialPort.cs
@@ -451,6 +451,11 @@ namespace System.IO.Ports
stream.DiscardOutBuffer ();
}
+ static Exception GetNotImplemented ()
+ {
+ return new NotImplementedException ("Detection of ports is not implemented for this platform yet.");
+ }
+
public static string [] GetPortNames ()
{
int p = (int) Environment.OSVersion.Platform;
@@ -467,7 +472,7 @@ namespace System.IO.Ports
}
return serial_ports.ToArray ();
}
- throw new NotImplementedException ("Detection of ports is not implemented for this platform yet.");
+ throw GetNotImplemented ();
}
static bool IsWindows {