C# Class NArrange.Core.FileUtilities

File utility methods.
Afficher le fichier Open project: MarcStan/NArrange

Méthodes publiques

Méthode Description
GetAttribute ( FileAttributeType attributeType, FileInfo file ) : string

Gets the string representation of a file attribute.

GetEncoding ( string filename ) : Encoding

Reads a file to determine its encoding.

Method Details

GetAttribute() public static méthode

Gets the string representation of a file attribute.
public static GetAttribute ( FileAttributeType attributeType, FileInfo file ) : string
attributeType FileAttributeType Type of the attribute.
file System.IO.FileInfo The file to get the attribute for.
Résultat string

GetEncoding() public static méthode

Reads a file to determine its encoding.
public static GetEncoding ( string filename ) : Encoding
filename string The filename.
Résultat System.Text.Encoding