title: Displaying bool value as Yes or No
body: <p>I am quering a database and assigning the values to an object which I serialize and display in a report.</p>
  
  <p>Thing is the bool variables are displayed in the report as true or false. How can get the values to be displayed as "Yes" or "No".</p>
  
  <p>This is my class</p>
  
  <pre><code>public class ProductReportView
  {
      public int Count { get; set; }
      public string ProductCode { get; set; }
      public string ProductTitle { get; set; }
      public string Producer { get; set; }
  
      public bool VideoOnDemand { get; set; }
      public bool PreviewScreen { get; set; }
      public bool QualityCheck { get; set; }
      public bool Archive { get; set; }
  }
  </code></pre>
  
  <p>This is how I assign the values</p>
  
  <pre><code>OleDbDataReader dbreader = cmd.ExecuteReader();
  
  while (dbreader.Read())
  {
       Console.WriteLine("Record " + totalCount++);
       ProductReportView rep = new ProductReportView();
       rep.Count = ++totalCount;
       rep.ProductCode = (string)dbreader["CODE"];
       rep.ProductTitle = (string)dbreader["TITLE"];
       rep.Producer = (string)dbreader["PRODUCER"];
       rep.VideoOnDemand = (bool)dbreader["VideoOnDemand"];
       rep.PreviewScreen = (bool)dbreader["PreviewLibraryChecked"];
       rep.QualityCheck = (bool)dbreader["QualityCheck"];
       rep.Archive = (bool)dbreader["Archive"];
       lst.Add(rep);
  }
  </code></pre>
  
  <p>The values are based on checkboxes that is checked and unchecked(VideoOnDemand, PreviewScreen QualityCheck, Archive)        </p>