WT? In the .NET Framework
The Weird and The Wonderful
1
Posts
1
Posters
13
Views
1
Watching
-
A small snippet from inside the .NET Framework (2)...
if ((portName == null) || !portName.StartsWith("COM", StringComparison.OrdinalIgnoreCase))
{
throw new ArgumentException(SR.GetString("Arg_InvalidSerialPort"), "portName");
}from the
System.IO.Ports.SerialStream
constructor, why check for a port name that does not begin with COM? Other Win32 stuff doesn't do this, proof via Hyperterminal. Thankfully MS said they're going to remove this from the next version of the framework :rolleyes: