Quote Originally Posted by dbasnett View Post
When it comes to SerialPorts 1 stop bit would be a reasonable default.
I think you misunderstood what jmc tried to say. A variable declared as an enum type is basically just an integer and the default value for an integer is 0, unless you provide a value.
Code:
Dim sb As StopBits 
'No value assigned to "sb" above so it gets the default value 0.
BTW, I don't understand in this particular case why you guys suggest using the Cast extension method instead of a regular CType call as I posted earlier.