Skip to content

Commit

Permalink
Updated docs for configuration attributes.
Browse files Browse the repository at this point in the history
  • Loading branch information
JoshClose committed Apr 16, 2024
1 parent 25626ce commit f85b1a2
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion docs/change-log/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,7 @@ <h4 id="bug-fixes-3">Bug Fixes</h4>
<li>Fixed issue where <code>CsvDataReader</code> couldn't be used if lines were read manually ahead of time.</li>
<li>Fixed issue where <code>CsvDataReader</code> wasn't working when <code>HasHeaderRecord</code> was false.</li>
<li>Fixed issue where <code>CsvReader.ColumnCount</code> did not match <code>CsvParser.Count</code>.</li>
<li>Fixed issue where <code>GetDlimiter</code> was not detecting the correct delimiter when there are blank lines.</li>
<li>Fixed issue where <code>GetDelimiter</code> was not detecting the correct delimiter when there are blank lines.</li>
<li>Fixed issue where header validation was outputing error message for each field when it only needed to once.</li>
</ul>
<h3 id="section-5">30.0.3</h3>
Expand Down
2 changes: 1 addition & 1 deletion docs/examples/configuration/attributes/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -413,7 +413,7 @@ <h6 id="data">Data</h6>
<h6 id="example">Example</h6>
<pre><code class="language-cs">void Main()
{
CsvConfiguration config = CsvConfiguration.FromType&lt;Foo&gt;();
var config = CsvConfiguration.FromAttributes&lt;Foo&gt;();
using (var reader = new StreamReader(&quot;path\\to\\file.csv&quot;))
using (var csv = new CsvReader(reader, config))
{
Expand Down
2 changes: 1 addition & 1 deletion docs/sitemap.xml
Original file line number Diff line number Diff line change
@@ -1 +1 @@
<?xml version="1.0" encoding="UTF-8"?><urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9"><url><loc>/CsvHelper/CsvHelper/google6ad86f23ff698b61</loc></url><url><loc>/CsvHelper/CsvHelper/change-log</loc></url><url><loc>/CsvHelper/CsvHelper/examples</loc></url><url><loc>/CsvHelper/CsvHelper/examples/configuration</loc></url><url><loc>/CsvHelper/CsvHelper/examples/configuration/attributes</loc></url><url><loc>/CsvHelper/CsvHelper/examples/configuration/class-maps</loc></url><url><loc>/CsvHelper/CsvHelper/examples/configuration/class-maps/constant-value</loc></url><url><loc>/CsvHelper/CsvHelper/examples/configuration/class-maps/auto-mapping</loc></url><url><loc>/CsvHelper/CsvHelper/examples/configuration/class-maps/ignoring-properties</loc></url><url><loc>/CsvHelper/CsvHelper/examples/configuration/class-maps/inline-type-conversion</loc></url><url><loc>/CsvHelper/CsvHelper/examples/prerequisites/streams</loc></url><url><loc>/CsvHelper/CsvHelper/examples/configuration/class-maps/mapping-by-index</loc></url><url><loc>/CsvHelper/CsvHelper/examples/configuration/class-maps/mapping-by-alternate-names</loc></url><url><loc>/CsvHelper/CsvHelper/examples/configuration/class-maps/mapping-by-name</loc></url><url><loc>/CsvHelper/CsvHelper/examples/writing/write-dynamic-objects</loc></url><url><loc>/CsvHelper/CsvHelper/examples/configuration/class-maps/mapping-properties</loc></url><url><loc>/CsvHelper/CsvHelper/examples/configuration/class-maps/mapping-duplicate-names</loc></url><url><loc>/CsvHelper/CsvHelper/examples/configuration/class-maps/optional-maps</loc></url><url><loc>/CsvHelper/CsvHelper/examples/configuration/class-maps/validation</loc></url><url><loc>/CsvHelper/CsvHelper/examples/configuration/class-maps/type-conversion</loc></url><url><loc>/CsvHelper/CsvHelper/examples/csvdatareader</loc></url><url><loc>/CsvHelper/CsvHelper/examples/prerequisites/reading-and-writing-files</loc></url><url><loc>/CsvHelper/CsvHelper/examples/prerequisites</loc></url><url><loc>/CsvHelper/CsvHelper/examples/prerequisites/using-and-dispose</loc></url><url><loc>/CsvHelper/CsvHelper/examples/reading/enumerate-class-records</loc></url><url><loc>/CsvHelper/CsvHelper/examples/reading</loc></url><url><loc>/CsvHelper/CsvHelper/examples/reading/get-anonymous-type-records</loc></url><url><loc>/CsvHelper/CsvHelper/examples/reading/reading-by-hand</loc></url><url><loc>/CsvHelper/CsvHelper/examples/reading/get-class-records</loc></url><url><loc>/CsvHelper/CsvHelper/examples/reading/get-dynamic-records</loc></url><url><loc>/CsvHelper/CsvHelper/examples/type-conversion</loc></url><url><loc>/CsvHelper/CsvHelper/examples/reading/reading-multiple-data-sets</loc></url><url><loc>/CsvHelper/CsvHelper/examples/reading/reading-multiple-record-types</loc></url><url><loc>/CsvHelper/CsvHelper/examples/writing/write-anonymous-type-objects</loc></url><url><loc>/CsvHelper/CsvHelper/examples/type-conversion/custom-type-converter</loc></url><url><loc>/CsvHelper/CsvHelper/examples/writing</loc></url><url><loc>/CsvHelper/CsvHelper/migration</loc></url><url><loc>/CsvHelper/CsvHelper/examples/writing/write-class-objects</loc></url><url><loc>/CsvHelper/CsvHelper/examples/type-conversion/type-converter-options</loc></url><url><loc>/CsvHelper/CsvHelper/examples/writing/appending-to-an-existing-file</loc></url><url><loc>/CsvHelper/CsvHelper/migration/v10</loc></url><url><loc>/CsvHelper/CsvHelper/migration/v17</loc></url><url><loc>/CsvHelper/CsvHelper/migration/v18</loc></url><url><loc>/CsvHelper/CsvHelper/migration/v20</loc></url><url><loc>/CsvHelper/CsvHelper/migration/v21</loc></url><url><loc>/CsvHelper/CsvHelper/migration/v6</loc></url><url><loc>/CsvHelper/CsvHelper/migration/v7</loc></url><url><loc>/CsvHelper/CsvHelper/migration/v11</loc></url><url><loc>/CsvHelper/CsvHelper/migration/v8</loc></url><url><loc>/CsvHelper/CsvHelper/migration/v12</loc></url><url><loc>/CsvHelper/CsvHelper/getting-started</loc></url><url><loc>/CsvHelper/CsvHelper/migration/v9</loc></url><url><loc>/CsvHelper/CsvHelper/migration/v19</loc></url><url><loc>/CsvHelper/CsvHelper/migration/v15</loc></url><url><loc>/CsvHelper/CsvHelper/migration/v13</loc></url><url><loc>/CsvHelper/CsvHelper/migration/v2</loc></url><url><loc>/CsvHelper/CsvHelper/migration/v16</loc></url><url><loc>/CsvHelper/CsvHelper/migration/v14</loc></url><url><loc>/CsvHelper/CsvHelper/migration/v26</loc></url><url><loc>/CsvHelper/CsvHelper/migration/v24</loc></url><url><loc>/CsvHelper/CsvHelper/migration/v22</loc></url><url><loc>/CsvHelper/CsvHelper/migration/v27</loc></url><url><loc>/CsvHelper/CsvHelper/migration/v25</loc></url><url><loc>/CsvHelper/CsvHelper/migration/v23</loc></url><url><loc>/CsvHelper/CsvHelper/migration/v4</loc></url><url><loc>/CsvHelper/CsvHelper/migration/v3</loc></url><url><loc>/CsvHelper/CsvHelper/migration/v28</loc></url><url><loc>/CsvHelper/CsvHelper/migration/v5</loc></url><url><loc>/CsvHelper/CsvHelper/migration/v30</loc></url><url><loc>/CsvHelper/CsvHelper/migration/v29</loc></url><url><loc>/CsvHelper/CsvHelper/api</loc></url><url><loc>/CsvHelper/CsvHelper</loc></url></urlset>
<?xml version="1.0" encoding="UTF-8"?><urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9"><url><loc>/CsvHelper/CsvHelper/google6ad86f23ff698b61</loc></url><url><loc>/CsvHelper/CsvHelper/examples/configuration/class-maps/mapping-by-index</loc></url><url><loc>/CsvHelper/CsvHelper/examples</loc></url><url><loc>/CsvHelper/CsvHelper/change-log</loc></url><url><loc>/CsvHelper/CsvHelper/examples/reading/reading-by-hand</loc></url><url><loc>/CsvHelper/CsvHelper/examples/configuration/class-maps</loc></url><url><loc>/CsvHelper/CsvHelper/examples/configuration/class-maps/auto-mapping</loc></url><url><loc>/CsvHelper/CsvHelper/examples/configuration/attributes</loc></url><url><loc>/CsvHelper/CsvHelper/examples/writing/write-class-objects</loc></url><url><loc>/CsvHelper/CsvHelper/examples/configuration/class-maps/inline-type-conversion</loc></url><url><loc>/CsvHelper/CsvHelper/examples/configuration/class-maps/mapping-by-alternate-names</loc></url><url><loc>/CsvHelper/CsvHelper/examples/configuration/class-maps/constant-value</loc></url><url><loc>/CsvHelper/CsvHelper/examples/configuration/class-maps/optional-maps</loc></url><url><loc>/CsvHelper/CsvHelper/examples/configuration/class-maps/mapping-by-name</loc></url><url><loc>/CsvHelper/CsvHelper/examples/configuration/class-maps/mapping-duplicate-names</loc></url><url><loc>/CsvHelper/CsvHelper/examples/prerequisites</loc></url><url><loc>/CsvHelper/CsvHelper/examples/configuration/class-maps/validation</loc></url><url><loc>/CsvHelper/CsvHelper/examples/csvdatareader</loc></url><url><loc>/CsvHelper/CsvHelper/examples/reading</loc></url><url><loc>/CsvHelper/CsvHelper/examples/prerequisites/using-and-dispose</loc></url><url><loc>/CsvHelper/CsvHelper/examples/prerequisites/streams</loc></url><url><loc>/CsvHelper/CsvHelper/examples/reading/get-dynamic-records</loc></url><url><loc>/CsvHelper/CsvHelper/examples/reading/get-anonymous-type-records</loc></url><url><loc>/CsvHelper/CsvHelper/migration</loc></url><url><loc>/CsvHelper/CsvHelper/examples/reading/reading-multiple-record-types</loc></url><url><loc>/CsvHelper/CsvHelper/examples/type-conversion/custom-type-converter</loc></url><url><loc>/CsvHelper/CsvHelper/migration/v11</loc></url><url><loc>/CsvHelper/CsvHelper/examples/type-conversion</loc></url><url><loc>/CsvHelper/CsvHelper/examples/type-conversion/type-converter-options</loc></url><url><loc>/CsvHelper/CsvHelper/migration/v12</loc></url><url><loc>/CsvHelper/CsvHelper/examples/writing/write-dynamic-objects</loc></url><url><loc>/CsvHelper/CsvHelper/migration/v2</loc></url><url><loc>/CsvHelper/CsvHelper/migration/v20</loc></url><url><loc>/CsvHelper/CsvHelper/migration/v18</loc></url><url><loc>/CsvHelper/CsvHelper/migration/v19</loc></url><url><loc>/CsvHelper/CsvHelper/migration/v29</loc></url><url><loc>/CsvHelper/CsvHelper/migration/v3</loc></url><url><loc>/CsvHelper/CsvHelper/getting-started</loc></url><url><loc>/CsvHelper/CsvHelper/migration/v14</loc></url><url><loc>/CsvHelper/CsvHelper/migration/v16</loc></url><url><loc>/CsvHelper/CsvHelper/migration/v15</loc></url><url><loc>/CsvHelper/CsvHelper/migration/v17</loc></url><url><loc>/CsvHelper/CsvHelper/migration/v25</loc></url><url><loc>/CsvHelper/CsvHelper/migration/v23</loc></url><url><loc>/CsvHelper/CsvHelper/migration/v26</loc></url><url><loc>/CsvHelper/CsvHelper/migration/v24</loc></url><url><loc>/CsvHelper/CsvHelper/migration/v27</loc></url><url><loc>/CsvHelper/CsvHelper/migration/v30</loc></url><url><loc>/CsvHelper/CsvHelper/migration/v28</loc></url><url><loc>/CsvHelper/CsvHelper/migration/v4</loc></url><url><loc>/CsvHelper/CsvHelper/migration/v9</loc></url><url><loc>/CsvHelper/CsvHelper/migration/v7</loc></url><url><loc>/CsvHelper/CsvHelper/migration/v8</loc></url><url><loc>/CsvHelper/CsvHelper/api</loc></url><url><loc>/CsvHelper/CsvHelper/examples/configuration</loc></url><url><loc>/CsvHelper/CsvHelper/examples/configuration/class-maps/ignoring-properties</loc></url><url><loc>/CsvHelper/CsvHelper/examples/configuration/class-maps/type-conversion</loc></url><url><loc>/CsvHelper/CsvHelper/examples/prerequisites/reading-and-writing-files</loc></url><url><loc>/CsvHelper/CsvHelper/examples/reading/enumerate-class-records</loc></url><url><loc>/CsvHelper/CsvHelper/examples/reading/reading-multiple-data-sets</loc></url><url><loc>/CsvHelper/CsvHelper/examples/writing/appending-to-an-existing-file</loc></url><url><loc>/CsvHelper/CsvHelper/examples/writing/write-anonymous-type-objects</loc></url><url><loc>/CsvHelper/CsvHelper/migration/v5</loc></url><url><loc>/CsvHelper/CsvHelper/migration/v6</loc></url><url><loc>/CsvHelper/CsvHelper/examples/configuration/class-maps/mapping-properties</loc></url><url><loc>/CsvHelper/CsvHelper/examples/reading/get-class-records</loc></url><url><loc>/CsvHelper/CsvHelper/examples/writing</loc></url><url><loc>/CsvHelper/CsvHelper/migration/v10</loc></url><url><loc>/CsvHelper/CsvHelper/migration/v13</loc></url><url><loc>/CsvHelper/CsvHelper/migration/v21</loc></url><url><loc>/CsvHelper/CsvHelper/migration/v22</loc></url><url><loc>/CsvHelper/CsvHelper</loc></url></urlset>
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ Identifier||Amount2|IsBool|Constant
```cs
void Main()
{
CsvConfiguration config = CsvConfiguration.FromType<Foo>();
var config = CsvConfiguration.FromAttributes<Foo>();
using (var reader = new StreamReader("path\\to\\file.csv"))
using (var csv = new CsvReader(reader, config))
{
Expand Down

0 comments on commit f85b1a2

Please sign in to comment.