C# 클래스 Bespoke.DynamicDnsUpdater.Common.StringUtility

파일 보기 프로젝트 열기: dmarchelya/BespokeDynamicDnsUpdater

공개 메소드들

메소드 설명
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

메소드 상세

ConvertToBool() 공개 정적인 메소드

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
리턴 bool

ConvertToInt() 공개 정적인 메소드

public static ConvertToInt ( string intString, int defaultValue ) : int
intString string
defaultValue int
리턴 int