(var reader = new StreamReader(&quot;path\\to\\file.csv&quot;))
    using (var csv = new CsvReader(reader, CultureInfo.InvariantCulture))
    {
		var anonymousTypeDefinition = new
		{
			Id = default(int),
			Name = string.Empty
		};
        var records = csv.GetRecords(anonymousTypeDefinition);
    }
}
</code></pre>

					</div>
				</div>
		</div>
	</main>

	<br /><br />

	<footer id="footer" class="footer">
	<div class="has-text-centered">&copy; 2009-2024 Josh Close</div>
</footer>



	<script>
		hljs.co