Guest User

Untitled

a guest
Feb 13th, 2013
39
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1.            // Readout the text
  2.             try
  3.             {
  4.         // read the text   
  5.                 await speechSynthesizer.synthesizer.SpeakTextAsync(this.readoutTextBox.Text.ToString());           
  6.  
  7.                 // If the text the user enters matches the dictionary
  8.                 if (this.readoutTextBox.Text == this.AitemTextBlock.Text)
  9.                 {
  10.                     Console.WriteLine("This matches!");
  11.                 }
  12.              }
  13.  
  14.  
  15. ********************************************************************************************
  16. This code receives the error: Operator '||' cannot be applied to operands of type 'bool' and 'method group' ****************************************************************************************
  17.  
  18.  
  19.            // Readout the text
  20.             try
  21.             {
  22.         // read the text   
  23.                 await speechSynthesizer.synthesizer.SpeakTextAsync(this.readoutTextBox.Text.ToString());           
  24.  
  25.                 // If the text the user enters matches the dictionary
  26.                 if (this.readoutTextBox.Text == this.AitemTextBlock.Text ||
  27.             this.AitemTextBlock.Text.ToLower)
  28.                 {
  29.                     Console.WriteLine("This matches!");
  30.                 }
  31.              }
RAW Paste Data