-
-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- caching of writer action for collections
- removed duplicate type resolving - optimized Type HashCodes - reduced memory allocation during writes
- Loading branch information
1 parent
9da7834
commit 183d47b
Showing
9 changed files
with
145 additions
and
45 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
using System; | ||
|
||
namespace CsvHelper | ||
{ | ||
/// <summary> | ||
/// Container for type info about written records | ||
/// </summary> | ||
public struct RecordTypeInfo | ||
{ | ||
/// <summary> | ||
/// .ctor | ||
/// </summary> | ||
/// <param name="recordType"></param> | ||
/// <param name="isItemType"></param> | ||
public RecordTypeInfo(Type recordType, bool isItemType) | ||
{ | ||
RecordType = recordType; | ||
IsItemType = isItemType; | ||
} | ||
|
||
/// <summary> | ||
/// Final type of the record | ||
/// </summary> | ||
public Type RecordType { get; } | ||
|
||
/// <summary> | ||
/// Is this type from record item | ||
/// </summary> | ||
public bool IsItemType { get; } | ||
} | ||
} |