Пример #1
0
 internal static string ToString(this BaudRate baudRate, bool asInt32)
 {
     return((asInt32) ? (baudRate.ToInt32()).ToString() : baudRate.ToString());
 }
Пример #2
0
        public void BaudRateToInt32()
        {
            BaudRate br = BaudRate.BR_57600;

            Assert.AreEqual(57600, br.ToInt32());
        }