title: C# data reader value repeats multiple times while debugging
body: <p>I am reading data from the <code>SQL server</code> table and inserting the same value in the PostgreSQL\SQL database table. It's a data migration process.</p>
  <p>The issue is that the data in the SQL is plain text but I see it in the debugging it shows the same value multiple times in watch (visual studio 2015).</p>
  <p>Value displays in SQL server as below:</p>
  <p><a href="https://i.stack.imgur.com/3W1if.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/3W1if.png" alt="Value displays in SQL server" /></a></p>
  <p>Data shows in the visual studio debugger:</p>
  <p><a href="https://i.stack.imgur.com/ynrOC.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/ynrOC.png" alt="Value displays in the debugger" /></a></p>
  <p>All migration process works fine but the only table having these type of value does not insert in the <code>PostgreSQL\SQL</code> and will throw an exception.</p>
  <p>Exception:</p>
  <pre><code>{&quot;22021: invalid byte sequence for encoding \&quot;UTF8\&quot;: 0x00&quot;}
  </code></pre>
  <p>Stacktrace:</p>
  <p><a href="https://i.stack.imgur.com/sOLvG.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/sOLvG.png" alt="Exception" /></a></p>
  <p>I don't understand the exact problem here. Can anyone please help me understand the cause and solution to the above issue?</p>