Amazon Wish List News RSS feed. Development Blog Browse the Forums  
  Overview - Downloads - Examples - News Feed - Contact Info -

CommonEngine.SortFileByField Method 

Sort the content of a File using the field name provided

[Visual Basic]
Public Shared Sub SortFileByField( _
   ByVal recordClass As Type, _
   ByVal fieldName As String, _
   ByVal asc As Boolean, _
   ByVal sourceFile As String, _
   ByVal sortedFile As String _
)
[C#]
public static void SortFileByField(
   Type recordClass,
   string fieldName,
   bool asc,
   string sourceFile,
   string sortedFile
);

Parameters

recordClass
The class for each record of the file.
fieldName
The name of the field used to sort the file.
asc
The sort direction.
sourceFile
The source file.
sortedFile
The destination File.

See Also

CommonEngine Class | FileHelpers Namespace


Powered by:

Source Forge Thanks Jetbrains for support us !! Thanks BB Software for support us !! TestDriven.NET Code Coverage by Clover.NET Code Project Article Larkware News Sharp Toolbox