C# 클래스 WebConvert, FileZilla.NET

The WebConvert class is a collection of conversion routines designed for use with the web.
파일 보기 프로젝트 열기: sancsoft/FileZilla.NET 1 사용 예제들

공개 메소드들

메소드 설명
ToBoolean ( object input, bool defaultValue ) : bool

Attempt to convert the supplied object to a Boolean.

ToDateTime ( object input, DateTime defaultValue ) : DateTime

Attempt to convert the supplied object to a DateTime.

ToDouble ( object input, double defaultValue ) : double

Attempt to convert the supplied object to a double-precision float.

ToInt32 ( object input, int defaultValue ) : int

Attempt to convert the supplied object to an Int32.

ToSingle ( object input, float defaultValue ) : float

Attempt to convert the supplied object to a single-precision float.

ToString ( object input, string defaultValue ) : string

Attempt to convert the supplied object to a String.

메소드 상세

ToBoolean() 공개 정적인 메소드

Attempt to convert the supplied object to a Boolean.
public static ToBoolean ( object input, bool defaultValue ) : bool
input object The object to parse.
defaultValue bool The default value to use if the conversion fails.
리턴 bool

ToDateTime() 공개 정적인 메소드

Attempt to convert the supplied object to a DateTime.
public static ToDateTime ( object input, DateTime defaultValue ) : DateTime
input object The object to parse.
defaultValue DateTime The default value to use if the conversion fails.
리턴 DateTime

ToDouble() 공개 정적인 메소드

Attempt to convert the supplied object to a double-precision float.
public static ToDouble ( object input, double defaultValue ) : double
input object The object to parse.
defaultValue double The default value to use if the conversion fails.
리턴 double

ToInt32() 공개 정적인 메소드

Attempt to convert the supplied object to an Int32.
public static ToInt32 ( object input, int defaultValue ) : int
input object The object to parse.
defaultValue int The default value to use if the conversion fails.
리턴 int

ToSingle() 공개 정적인 메소드

Attempt to convert the supplied object to a single-precision float.
public static ToSingle ( object input, float defaultValue ) : float
input object The object to parse.
defaultValue float The default value to use if the conversion fails.
리턴 float

ToString() 공개 정적인 메소드

Attempt to convert the supplied object to a String.
public static ToString ( object input, string defaultValue ) : string
input object The object to parse.
defaultValue string The default value to use if the conversion fails.
리턴 string