Comments (7)
Hi. I've been really swamped the past couple of days. I will try to give you an answer in the next day here.
from csvhelper.
What is MyType1
and MyType2
? Are they IEnumerable<T> collections?
from csvhelper.
Yes, but of different types (T1 and T2)
Date: Tue, 24 Jul 2012 22:29:58 -0700
From: [email protected]
To: [email protected]
Subject: Re: [CsvHelper] Multiple Types (WriteRecords) (#41)What is
MyType1
andMyType2
? Are they IEnumerable collections?
Reply to this email directly or view it on GitHub:
#41 (comment)
from csvhelper.
OK see the issue. I'll let you know if I find a workaround. Otherwise, I'll have a fix for it within a week here.
from csvhelper.
For a workaround, after writing the first set of records, you can clear the properties.
csvWriter.Configuration.Properties.Clear();
You should be able to clear the cache instead; but it's currently not clearing the properties like it should.
csvWriter.InvalidateRecordCache<MyType1>();
I will fix this, but you should be able to use the workaround for now.
from csvhelper.
Yep, that is what I'm seeing on this end, thank you!
Date: Wed, 25 Jul 2012 16:11:49 -0700
From: [email protected]
To: [email protected]
Subject: Re: [CsvHelper] Multiple Types (WriteRecords) (#41)For a workaround, after writing the first set of records, you can clear the properties.
csvWriter.Configuration.Properties.Clear();
You should be able to clear the cache instead; but it's currently not clearing the properties like it should.
csvWriter.InvalidateRecordCache<MyType1>();
I will fix this, but you should be able to use the workaround for now.
Reply to this email directly or view it on GitHub:
#41 (comment)
from csvhelper.
Just committed the fix. 76207e1
from csvhelper.
Related Issues (20)
- CountBytes does not correctly count bytes when IgnoreBlankLines is enabled. HOT 1
- Incorrect array length determination in ByteArrayConverter.HexStringToByteArray
- Build error - HOT 3
- New compatibility issue regression due to `System.Linq.Async` inclusion HOT 5
- Microsoft.Bcl.AsyncInterfaces dependency error on System.Threading.Tasks.Extensions HOT 4
- ConfigurationException: 'Types that inherit IEnumerable cannot be auto mapped' when using custom class based on DynamicObject (NOT ExpandoObject) which also implements IDictionary HOT 3
- Missing "Product Version" in CsvHelper.dll HOT 1
- Column Name not displaying Using Mapping HOT 1
- Just thrown new exception by choice.
- Unexpected `InvalidCastException` in `TypeConverter<>` with nullable structs and value types HOT 2
- List<T>.ToAsyncEnumerable not accessible anymore after upgrade to CSVHelper 31.0.2 (.NET 8) HOT 5
- Set Custom Headers that derives from the property value. HOT 7
- Eliminate the columns if empty HOT 1
- Unregister ClassMap does not clear the previous maps if the same class is used HOT 2
- Getting problems with release build of my app using COM HOT 1
- add my report list columns' name as a header to the csv file when the HasHeaderRecord is set to false
- When Query from db and return IEnumable, will execute 2 times for sql query HOT 3
- Validate Header generate a very large message. HOT 2
- Header does not contain Quote, but some fields in row contain Quote, how should I read this kind of CSV HOT 4
- FastDynamicObject broke serialization HOT 7
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from csvhelper.