Click or drag to resize

FileTransformEngineTSource, TDestination Class

This class allow you to convert the records of a file to a different record format.
Inheritance Hierarchy
SystemObject
  FileHelpersFileTransformEngineTSource, TDestination

Namespace:  FileHelpers
Assembly:  FileHelpers (in FileHelpers.dll) Version: 3.2.6
Syntax
public sealed class FileTransformEngine<TSource, TDestination>
where TSource : class, Object, ITransformable<TDestination>
where TDestination : class

Type Parameters

TSource
The source record type.
TDestination
The destination record type.

The FileTransformEngineTSource, TDestination type exposes the following members.

Constructors
Properties
  NameDescription
Public propertyDestinationEncoding
The Encoding of the Destination File.
Public propertyDestinationErrorManager
Allow access the ErrorManager of the engine used to write the destination file, is null before any file is transformed
Public propertyDestinationType
The destination record Type.
Public propertyErrorMode
Indicates the behavior of the engine when an error is found.
Public propertySourceEncoding
The Encoding of the Source File.
Public propertySourceErrorManager
Allow access the ErrorManager of the engine used to read the source file, is null before any file is transformed
Public propertySourceType
The source record Type.
Top
Methods
  NameDescription
Public methodReadAndTransformRecords
Transform a file that contains source records to an array of the destination type
Public methodTransformFile
Transform the contents of the sourceFile and write them to the destFile.(use only if you need the array of the transformed records, TransformFileFast is faster)
Public methodTransformFileFast(TextReader, StreamWriter)
Transform the contents of the sourceFile and write them to the destFile. (faster and uses less memory, best choice for big files)
Public methodTransformFileFast(TextReader, String)
Transform the contents of the sourceFile and write them to the destFile. (faster and uses less memory, best choice for big files)
Public methodTransformFileFast(String, StreamWriter)
Transform the contents of the sourceFile and write them to the destFile. (faster and uses less memory, best choice for big files)
Public methodTransformFileFast(String, String)
Transform the contents of the sourceFile and write them to the destFile. (faster and uses less memory, best choice for big files)
Public methodTransformRecords
Transforms an array of records from the source type to the destination type
Top
See Also