C# Class Bespoke.DynamicDnsUpdater.Common.StringUtility

Show file Open project: dmarchelya/BespokeDynamicDnsUpdater

Public Methods

Method 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 method

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
return bool

ConvertToInt() public static method

public static ConvertToInt ( string intString, int defaultValue ) : int
intString string
defaultValue int
return int