/// <summary> /// Retrieve list of StopBits settings. /// </summary> /// <returns>List of StopBits settings.</returns> public static List <StopBits> RetrieveStopBitsList() { return(StopBits.GetValues(typeof(StopBits)).Cast <StopBits>().ToList()); }