Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // Readout the text
- try
- {
- // read the text
- await speechSynthesizer.synthesizer.SpeakTextAsync(this.readoutTextBox.Text.ToString());
- // If the text the user enters matches the dictionary
- if (this.readoutTextBox.Text == this.AitemTextBlock.Text)
- {
- Console.WriteLine("This matches!");
- }
- }
- ********************************************************************************************
- This code receives the error: Operator '||' cannot be applied to operands of type 'bool' and 'method group' ****************************************************************************************
- // Readout the text
- try
- {
- // read the text
- await speechSynthesizer.synthesizer.SpeakTextAsync(this.readoutTextBox.Text.ToString());
- // If the text the user enters matches the dictionary
- if (this.readoutTextBox.Text == this.AitemTextBlock.Text ||
- this.AitemTextBlock.Text.ToLower)
- {
- Console.WriteLine("This matches!");
- }
- }
RAW Paste Data