Click or drag to resize

CommonEngineTransformFileTSource, TDest Method

Transform the records of type sourceType in the sourceFile in records of type destType and write them to the destFile. (but returns the transformed records) WARNING: this is a slower method that the TransformFileAssync.

Namespace:  FileHelpers
Assembly:  FileHelpers (in FileHelpers.dll) Version: 3.2.6
Syntax
public static Object[] TransformFile<TSource, TDest>(
	string sourceFile,
	string destFile
)
where TSource : class, Object, ITransformable<TDest>
where TDest : class

Parameters

sourceFile
Type: SystemString
The file with records to be transformed
destFile
Type: SystemString
The destination file with the transformed records

Type Parameters

TSource

[Missing <typeparam name="TSource"/> documentation for "M:FileHelpers.CommonEngine.TransformFile``2(System.String,System.String)"]

TDest

[Missing <typeparam name="TDest"/> documentation for "M:FileHelpers.CommonEngine.TransformFile``2(System.String,System.String)"]

Return Value

Type: Object
The transformed records.
See Also