title: How to convert string to double in C#
body: <p>In the following code , rating in generating error </p>
  
  <pre><code>string[] allLines = File.ReadAllLines(@"Ratings.csv");
  
  var parsed = from line in allLines
              let row = line.Split(';')
               select new
               {
                   UserId = row[0],
                   ItemId = row[1],
                   rating = row[3]
              };
  var Rating = parsed.Select(x =&gt; new AddRating (x.UserId, x.ItemId,x.rating));
  
  client.Send(new Batch(Rating));
  
  
  var detailViews = parsed.Select(x =&gt; new AddDetailView(x.UserId, x.ItemId,x.rating ));
  </code></pre>