Coder Social home page Coder Social logo

Comments (7)

JoshClose avatar JoshClose commented on June 2, 2024

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.

JoshClose avatar JoshClose commented on June 2, 2024

What is MyType1 and MyType2? Are they IEnumerable<T> collections?

from csvhelper.

craigfarrell avatar craigfarrell commented on June 2, 2024

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 and MyType2? Are they IEnumerable collections?


Reply to this email directly or view it on GitHub:
#41 (comment)

from csvhelper.

JoshClose avatar JoshClose commented on June 2, 2024

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.

JoshClose avatar JoshClose commented on June 2, 2024

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.

craigfarrell avatar craigfarrell commented on June 2, 2024

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.

JoshClose avatar JoshClose commented on June 2, 2024

Just committed the fix. 76207e1

from csvhelper.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.