Validating Schema of pipe separated Csv file in c#
<p>I have a page where users can upload there <strong>pipe separated</strong> "|" csv file. I want to validate the schema &amp; check whether that uploaded file is according to the schema or not ?</p>

<p>Currently I am checking <strong>using conditional operators</strong> whether it has columns name matching in the csv file for <strong>e.g</strong> If Col1 == Col1 then ok else bye. </p>

<p>But i feel this is not proper way to validate schema ? what are the possible options &amp; better way to validate the csv schema.</p>
