FileHelpers Support Forum Index
Some dot net books
FileHelpers Support
Support, Feedback, Suggestions and More...
Get forum post via any aggregator

Hi all, I'm a bit out of touch because my two works are keeping me really bussy.

My wife and me are waiting for a BABY =) so I'm using my free time to enjoy this unique and fantastic moment in life.

If you have any problem with the library you can try downloading the last Release Candidate version at:

Last Version: http://www.devoo.net/FileHelpers_2.2_RC1.rar

I dont have now time for a full release. Thanks for understanding my temporary absence.

Best Regards, Marcos

NaN in Decimal Column? Dynamic Class

 
Post new topic   Reply to topic    FileHelpers Support Forum Index -> Developers Discussions
View previous topic :: View next topic  
Author Message
hoffmanc



Joined: 07 Apr 2010
Posts: 5

PostPosted: Thu Apr 22, 2010 12:21    Post subject: NaN in Decimal Column? Dynamic Class Reply with quote

Here is what I'm trying to do:

Code:
var cb = new DelimitedClassBuilder(tableName, "\t");
cb.AddField("myCol", typeof(System.Decimal));
cb.LastField.FieldNullValue = new FieldNullValueAttribute(typeof(System.String), "NaN");


When I try to run this code, I receive the following error:

Code:
Invalid cast from 'System.String' to 'FileHelpers.FieldNullValueAttribute'.


Is there some other way to set a non-System.Decimal NullValue?
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    FileHelpers Support Forum Index -> Developers Discussions All times are GMT
Page 1 of 1

 
  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum

Send your feedback

Source Forge Thanks Jetbrains for support us !!