You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: src/CsvHelper/CsvParser.cs
+30-5Lines changed: 30 additions & 5 deletions
Original file line number
Diff line number
Diff line change
@@ -1,4 +1,4 @@
1
-
// Copyright 2009-2022 Josh Close
1
+
// Copyright 2009-2022 Josh Close
2
2
// This file is a part of CsvHelper and is dual licensed under MS-PL and Apache 2.0.
3
3
// See LICENSE.txt for details or visit http://www.opensource.org/licenses/ms-pl.html for MS-PL and http://opensource.org/licenses/Apache-2.0 for Apache 2.0.
Copy file name to clipboardExpand all lines: src/CsvHelper/CsvReader.cs
+57-16Lines changed: 57 additions & 16 deletions
Original file line number
Diff line number
Diff line change
@@ -1,4 +1,4 @@
1
-
// Copyright 2009-2022 Josh Close
1
+
// Copyright 2009-2022 Josh Close
2
2
// This file is a part of CsvHelper and is dual licensed under MS-PL and Apache 2.0.
3
3
// See LICENSE.txt for details or visit http://www.opensource.org/licenses/ms-pl.html for MS-PL and http://opensource.org/licenses/Apache-2.0 for Apache 2.0.
4
4
// https://github.com/JoshClose/CsvHelper
@@ -14,6 +14,7 @@
14
14
usingSystem.Globalization;
15
15
usingSystem.Runtime.CompilerServices;
16
16
usingSystem.Threading;
17
+
usingSystem.Configuration;
17
18
18
19
namespaceCsvHelper
19
20
{
@@ -120,13 +121,19 @@ public virtual bool ReadHeader()
120
121
returnheaderRecord!=null;
121
122
}
122
123
123
-
/// <inheritdoc/>
124
+
/// <summary>
125
+
/// Validates the header to be of the given type.
126
+
/// </summary>
127
+
/// <typeparam name="T">The expected type of the header</typeparam>
124
128
publicvirtualvoidValidateHeader<T>()
125
129
{
126
130
ValidateHeader(typeof(T));
127
131
}
128
132
129
-
/// <inheritdoc/>
133
+
/// <summary>
134
+
/// Validates the header to be of the given type.
135
+
/// </summary>
136
+
/// <param name="type">The expected type of the header.</param>
130
137
publicvirtualvoidValidateHeader(Typetype)
131
138
{
132
139
if(hasHeaderRecord==false)
@@ -154,7 +161,11 @@ public virtual void ValidateHeader(Type type)
Copy file name to clipboardExpand all lines: src/CsvHelper/CsvWriter.cs
+37-9Lines changed: 37 additions & 9 deletions
Original file line number
Diff line number
Diff line change
@@ -1,4 +1,4 @@
1
-
// Copyright 2009-2022 Josh Close
1
+
// Copyright 2009-2022 Josh Close
2
2
// This file is a part of CsvHelper and is dual licensed under MS-PL and Apache 2.0.
3
3
// See LICENSE.txt for details or visit http://www.opensource.org/licenses/ms-pl.html for MS-PL and http://opensource.org/licenses/Apache-2.0 for Apache 2.0.
4
4
// https://github.com/JoshClose/CsvHelper
@@ -299,7 +299,11 @@ public virtual void WriteHeader(Type type)
299
299
hasHeaderBeenWritten=true;
300
300
}
301
301
302
-
/// <inheritdoc/>
302
+
/// <summary>
303
+
/// Writes a dynamic header record.
304
+
/// </summary>
305
+
/// <param name="record">The header record to write.</param>
306
+
/// <exception cref="ArgumentNullException">Thrown when no record is passed.</exception>
0 commit comments