C# Class Variety.Utilities

Afficher le fichier Open project: riipandi/varlet

Méthodes publiques

Méthode 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

Méthode Description
GetActiveNic ( ) : NetworkInterface
GetFullPath ( string fileName ) : string

Method Details

IsExistsOnPath() public static méthode

public static IsExistsOnPath ( string fileName ) : bool
fileName string
Résultat bool

IsValidDomainName() public static méthode

public static IsValidDomainName ( string name ) : bool
name string
Résultat bool

OpenWithNotepad() public static méthode

public static OpenWithNotepad ( string file, bool runas = false ) : void
file string
runas bool
Résultat void

ReplaceStringInFile() public static méthode

public static ReplaceStringInFile ( string filename, string search, string replace ) : void
filename string
search string
replace string
Résultat void

SetDnsResolver() public static méthode

public static SetDnsResolver ( string dnsString ) : void
dnsString string
Résultat void

UnsetDnsResolver() public static méthode

public static UnsetDnsResolver ( ) : void
Résultat void