UtilTextFilesGetEncoding(FileInfo) Method

Determines the Encoding of the source textfile.

Definition

Namespace: DevCase.Core.DataProcessing.TextFiles
Assembly: DevCase.net48 (in DevCase.net48.dll) Version: 6.0.0.0 (6.0)
XMLNS for XAML: Not mapped to an xmlns.
public static Encoding GetEncoding(
	FileInfo sourceFile
)

Parameters

sourceFile  FileInfo
The source textfile.

Return Value

Encoding
If the encoding can be detected, the return value is the detected Encoding, if the encoding can't be detected, the return value is Default.

Example

This is a code example.
C#
No code example is currently available or this language may not be supported.

See Also