C# 클래스 DataTools.Extensions

파일 보기 프로젝트 열기: gothos-folly/TeraDataTools

공개 메소드들

메소드 설명
GetFloat ( Dictionary dictionary, key, float defaultValue ) : float
GetInt ( Dictionary dictionary, key, int defaultValue ) : int
GetLong ( Dictionary dictionary, key, long defaultValue ) : long
GetString ( Dictionary dictionary, key, string defaultValue = null ) : string
GetValueOrDefault ( Dictionary dictionary, key, defaultValue = default(TValue) ) : TValue
Map ( input, Func map ) : TResult
Map ( T? input, Func map ) : TResult

비공개 메소드들

메소드 설명
ToFloat ( object s ) : float?
ToInt ( object s ) : int?
ToLong ( object s ) : long?
ToString ( object s ) : string

메소드 상세

GetFloat() 공개 정적인 메소드

public static GetFloat ( Dictionary dictionary, key, float defaultValue ) : float
dictionary Dictionary
defaultValue float
리턴 float

GetInt() 공개 정적인 메소드

public static GetInt ( Dictionary dictionary, key, int defaultValue ) : int
dictionary Dictionary
defaultValue int
리턴 int

GetLong() 공개 정적인 메소드

public static GetLong ( Dictionary dictionary, key, long defaultValue ) : long
dictionary Dictionary
defaultValue long
리턴 long

GetString() 공개 정적인 메소드

public static GetString ( Dictionary dictionary, key, string defaultValue = null ) : string
dictionary Dictionary
defaultValue string
리턴 string

GetValueOrDefault() 공개 정적인 메소드

public static GetValueOrDefault ( Dictionary dictionary, key, defaultValue = default(TValue) ) : TValue
dictionary Dictionary
리턴 TValue

Map() 공개 정적인 메소드

public static Map ( input, Func map ) : TResult
map Func
리턴 TResult

Map() 공개 정적인 메소드

public static Map ( T? input, Func map ) : TResult
input T?
map Func
리턴 TResult