Click or drag to resize

CommonEngineSortFileByField Method

Sort the content of a File using the field name provided

Namespace:  FileHelpers
Assembly:  FileHelpers (in FileHelpers.dll) Version: 3.2.6
Syntax
public static void SortFileByField(
	Type recordClass,
	string fieldName,
	bool asc,
	string sourceFile,
	string sortedFile
)

Parameters

recordClass
Type: SystemType
The class for each record of the file.
fieldName
Type: SystemString
The name of the field used to sort the file.
asc
Type: SystemBoolean
The sort direction.
sourceFile
Type: SystemString
The source file.
sortedFile
Type: SystemString
The destination File.
See Also