CommonEngineSortFileByField Method |
Sort the content of a File using the field name provided
Namespace:
FileHelpers
Assembly:
FileHelpers (in FileHelpers.dll) Version: 3.2.6
Syntaxpublic static void SortFileByField(
Type recordClass,
string fieldName,
bool asc,
string sourceFile,
string sortedFile
)
Public Shared Sub SortFileByField (
recordClass As Type,
fieldName As String,
asc As Boolean,
sourceFile As String,
sortedFile As String
)
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