title: C# prompting for a boolean value
body: <p>My searches have come up blank, or I am just not understand the results that I am finding. I am trying to prompt the user to input a boolean value, but I want the answer to be yes or no. Let me know if you need to see more code but I have this for the prompt. </p>
  
  <pre><code>public static bool getBoolInputValue(string inputType)
      {
          bool valid = false;
          bool value = true;
          string inputString = string.Empty;
          do
          {
              inputString = GetInput(inputType);
              if (!(String.IsNullOrEmpty(inputString)))
              {
                  valid = bool.TryParse(inputString, out value);
              }
              if (!valid)
                  Console.WriteLine("Invalid " + inputType + " try again!");
          } while (!valid);
  
          return value;
      }
  </code></pre>
  
  <p>This is the paramater for my boolean. Maybe this needs to be more specific?</p>
  
  <pre><code>public bool Nitrus
      {
          set { nitrus = value; }
          get { return nitrus; }
      }
  </code></pre>
  
  <p>Thank you for the help. I am fairly new to programming but cannot figure this out. It does prompt successfully, but it does not matter what answer I put into the box, it tells me it is not the right format.</p>