C# Class Bespoke.DynamicDnsUpdater.Common.StringUtility

Afficher le fichier Open project: dmarchelya/BespokeDynamicDnsUpdater

Méthodes publiques

Méthode Description
ConvertToBool ( string boolString, bool defaultOnFailure ) : bool

Attempts to convert the given string value to a boolean. If this fails, then it return the value provided in the defaultOnFailure parameter.

ConvertToInt ( string intString, int defaultValue ) : int

Method Details

ConvertToBool() public static méthode

Attempts to convert the given string value to a boolean. If this fails, then it return the value provided in the defaultOnFailure parameter.
public static ConvertToBool ( string boolString, bool defaultOnFailure ) : bool
boolString string
defaultOnFailure bool
Résultat bool

ConvertToInt() public static méthode

public static ConvertToInt ( string intString, int defaultValue ) : int
intString string
defaultValue int
Résultat int