Guest User

Untitled

a guest
Sep 18th, 2018
76
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.58 KB | None | 0 0
  1. Private morseCodeDictionary As New Dictionary(Of Char, String) From {{"a"c, ".-"},
  2. {"b"c, "-..."},
  3. {"c"c, "-.-."}}
  4.  
  5. Private Sub inputTextBox_TextChanged(sender As Object, e As EventArgs) Handles inputTextBox.TextChanged
  6. outputTextBox.Text = String.Join(" ",
  7. inputTextBox.Text.
  8. ToLower().
  9. Select(Function(ch) morseCodeDictionary(ch)))
Add Comment
Please, Sign In to add comment