Skip to content

Commit

Permalink
Add doc comment for GetCSVHeader
Browse files Browse the repository at this point in the history
  • Loading branch information
patrickackermann committed May 16, 2024
1 parent ec8720b commit 9cad78f
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/api/BoreholeGeometryFormat/Helper.cs
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,12 @@ public static class Helper
MissingFieldFound = null,
};

/// <summary>
/// Get the CSV header <see cref="CsvHelper"/> expects to read a class <typeparamref name="T"/>.
/// Uses the map generated by <see cref="CsvHelper.CsvContext.AutoMap{T}()"/>.
/// If a property has multiple possible column names only the first is considered.
/// </summary>
/// <typeparam name="T">The class to get the header for.</typeparam>
internal static string GetCSVHeader<T>()
{
var context = new CsvContext(CsvConfig);
Expand Down

0 comments on commit 9cad78f

Please sign in to comment.