C# Class Variety.Utilities

Mostra file Open project: riipandi/varlet

Public Methods

Method Description
IsExistsOnPath ( string fileName ) : bool
IsValidDomainName ( string name ) : bool
OpenWithNotepad ( string file, bool runas = false ) : void
ReplaceStringInFile ( string filename, string search, string replace ) : void
SetDnsResolver ( string dnsString ) : void
UnsetDnsResolver ( ) : void

Private Methods

Method Description
GetActiveNic ( ) : NetworkInterface
GetFullPath ( string fileName ) : string

Method Details

IsExistsOnPath() public static method

public static IsExistsOnPath ( string fileName ) : bool
fileName string
return bool

IsValidDomainName() public static method

public static IsValidDomainName ( string name ) : bool
name string
return bool

OpenWithNotepad() public static method

public static OpenWithNotepad ( string file, bool runas = false ) : void
file string
runas bool
return void

ReplaceStringInFile() public static method

public static ReplaceStringInFile ( string filename, string search, string replace ) : void
filename string
search string
replace string
return void

SetDnsResolver() public static method

public static SetDnsResolver ( string dnsString ) : void
dnsString string
return void

UnsetDnsResolver() public static method

public static UnsetDnsResolver ( ) : void
return void