C# 클래스 NArrange.Core.FileUtilities

File utility methods.
파일 보기 프로젝트 열기: MarcStan/NArrange

공개 메소드들

메소드 설명
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.

메소드 상세

GetAttribute() 공개 정적인 메소드

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.
리턴 string

GetEncoding() 공개 정적인 메소드

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