C# Class PSHostsFile.Core.HostsFileUtil

Mostrar archivo Open project: fschwiet/PSHostsFile Class Usage Examples

Public Methods

Method Description
GetEncoding ( string file ) : Encoding
GetHostsFileEntry ( string line ) : HostsFileEntry
IsLineAHostFilesEntry ( string line ) : bool
TryGetHostsFileEntry ( string line ) : HostsFileEntry

Method Details

GetEncoding() public static method

public static GetEncoding ( string file ) : Encoding
file string
return System.Text.Encoding

GetHostsFileEntry() public static method

public static GetHostsFileEntry ( string line ) : HostsFileEntry
line string
return HostsFileEntry

IsLineAHostFilesEntry() public static method

public static IsLineAHostFilesEntry ( string line ) : bool
line string
return bool

TryGetHostsFileEntry() public static method

public static TryGetHostsFileEntry ( string line ) : HostsFileEntry
line string
return HostsFileEntry