C# 클래스 LightFramework.Core.ConvertHelper

ConvertHelpepr提供把字符串转换成具体的数据类型。
파일 보기 프로젝트 열기: xianrendzw/LightFramework.Net

공개 메소드들

메소드 설명
GetBoolean ( String str ) : bool
GetBoolean ( int value ) : bool

将整型变量转化为布尔变量(True或False).

GetByte ( String str ) : Byte
GetBytes ( String str ) : byte[]
GetDateTime ( String str ) : System.DateTime
GetDecimal ( String str ) : decimal
GetDouble ( String str ) : double
GetFloat ( String str ) : float
GetGuid ( String str ) : System.Guid
GetInt16 ( String str ) : short
GetInt32 ( String str ) : int
GetInt64 ( String str ) : System.Int64
GetSingle ( String str ) : System.Single

메소드 상세

GetBoolean() 공개 정적인 메소드

public static GetBoolean ( String str ) : bool
str String
리턴 bool

GetBoolean() 공개 정적인 메소드

将整型变量转化为布尔变量(True或False).
public static GetBoolean ( int value ) : bool
value int 整型数
리턴 bool

GetByte() 공개 정적인 메소드

public static GetByte ( String str ) : Byte
str String
리턴 Byte

GetBytes() 공개 정적인 메소드

public static GetBytes ( String str ) : byte[]
str String
리턴 byte[]

GetDateTime() 공개 정적인 메소드

public static GetDateTime ( String str ) : System.DateTime
str String
리턴 System.DateTime

GetDecimal() 공개 정적인 메소드

public static GetDecimal ( String str ) : decimal
str String
리턴 decimal

GetDouble() 공개 정적인 메소드

public static GetDouble ( String str ) : double
str String
리턴 double

GetFloat() 공개 정적인 메소드

public static GetFloat ( String str ) : float
str String
리턴 float

GetGuid() 공개 정적인 메소드

public static GetGuid ( String str ) : System.Guid
str String
리턴 System.Guid

GetInt16() 공개 정적인 메소드

public static GetInt16 ( String str ) : short
str String
리턴 short

GetInt32() 공개 정적인 메소드

public static GetInt32 ( String str ) : int
str String
리턴 int

GetInt64() 공개 정적인 메소드

public static GetInt64 ( String str ) : System.Int64
str String
리턴 System.Int64

GetSingle() 공개 정적인 메소드

public static GetSingle ( String str ) : System.Single
str String
리턴 System.Single