diff options
author | Miguel de Icaza <miguel@gnome.org> | 2006-12-28 04:03:29 +0300 |
---|---|---|
committer | Miguel de Icaza <miguel@gnome.org> | 2006-12-28 04:03:29 +0300 |
commit | 40d14c161e44f7541734ede8276c1d85abc4aa0f (patch) | |
tree | 64a7d9a50bbcbe9971457e665b355bca7f5ead34 /mcs/class/System/System.IO.Ports/SerialPort.cs | |
parent | 121c3081e2d0f5da50de7b3b4d6706c9b8485b25 (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.cs | 7 |
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 { |