c# - Storing the RecordString with the FileHelper Class -


we using filehelpers 2.0 in our project. have record defined , have data being imported correctly. after getting array of generic objects:

var engine = new filehelperengine<userrecord>(); engine.errormanager.errormode = errormode.saveandcontinue; userrecord[] importedusers = engine.readfile(_filepath); 

after getting records errored due formatting issues, iterating through importedusers array , doing validation see if information being imported valid.

if data not valid, want able log entire string original record file.

is there way store entire "recordstring" in userrecord class when filehelperengine reads each of records?

we @ work handling beforeread event , storing in field moriginalstring marked way:

[fieldnotinfile] public string moriginalstring;

you must use last version of library here:

http://teamcity.codebetter.com/repository/download/bt65/20313:id/filehelpers_2.9.9_releasebuild.zip

cheers


Comments

Popular posts from this blog

java - SNMP4J General Variable Binding Error -

windows - Python Service Installation - "Could not find PythonClass entry" -

Determine if a XmlNode is empty or null in C#? -