C# 클래스 DevUtils.PrimitivesExtensions.ShortExtensions

Static short extension
파일 보기 프로젝트 열기: jornfilho/.net-Dev-Utils

공개 메소드들

메소드 설명
IsValidShort ( this strValue ) : bool

Test if string value is a valid short value

IsValidShort ( this strValue, NumberStyles numberStyle, CultureInfo culture ) : bool

Test if string value is a valid short value

TryParseShort ( this strValue ) : short

Convert string to short

TryParseShort ( this strValue, NumberStyles numberStyle, CultureInfo culture ) : short

Convert string to short

TryParseShort ( this strValue, short defaultValue ) : short

Convert string to short

set default value on error

TryParseShort ( this strValue, short defaultValue, NumberStyles numberStyle, CultureInfo culture ) : short

Convert string to short

set default value on error

TryParseShort ( this strValue, short defaultValue, bool allowZero ) : short

Convert string to short

Set default value on error

TryParseShort ( this strValue, short defaultValue, bool allowZero, NumberStyles numberStyle, CultureInfo culture ) : short

Convert string to short

Set default value on error

TryParseShortArray ( this strValue ) : short[]

Parse string array in short array

TryParseShortArray ( this strValue, NumberStyles numberStyle, CultureInfo culture ) : short[]

Parse string array in short array

TryParseShortArray ( this strValue, short defaultValue ) : short[]

Parse string array in short array

TryParseShortArray ( this strValue, short defaultValue, NumberStyles numberStyle, CultureInfo culture ) : short[]

Parse string array in short array

TryParseShortArray ( this strValue, short defaultValue, bool allowDefaultConversion ) : short[]

Parse string array in short array

TryParseShortArray ( this strValue, short defaultValue, bool allowDefaultConversion, NumberStyles numberStyle, CultureInfo culture ) : short[]

Parse string array in short array

메소드 상세

IsValidShort() 공개 정적인 메소드

Test if string value is a valid short value
public static IsValidShort ( this strValue ) : bool
strValue this string value
리턴 bool

IsValidShort() 공개 정적인 메소드

Test if string value is a valid short value
public static IsValidShort ( this strValue, NumberStyles numberStyle, CultureInfo culture ) : bool
strValue this string value
numberStyle NumberStyles number style to convert
culture System.Globalization.CultureInfo culture origin
리턴 bool

TryParseShort() 공개 정적인 메소드

Convert string to short
public static TryParseShort ( this strValue ) : short
strValue this string value
리턴 short

TryParseShort() 공개 정적인 메소드

Convert string to short
public static TryParseShort ( this strValue, NumberStyles numberStyle, CultureInfo culture ) : short
strValue this string value
numberStyle NumberStyles number style to convert
culture System.Globalization.CultureInfo culture origin
리턴 short

TryParseShort() 공개 정적인 메소드

Convert string to short

set default value on error

public static TryParseShort ( this strValue, short defaultValue ) : short
strValue this string value
defaultValue short default value
리턴 short

TryParseShort() 공개 정적인 메소드

Convert string to short

set default value on error

public static TryParseShort ( this strValue, short defaultValue, NumberStyles numberStyle, CultureInfo culture ) : short
strValue this string value
defaultValue short default value
numberStyle NumberStyles number style to convert
culture System.Globalization.CultureInfo culture origin
리턴 short

TryParseShort() 공개 정적인 메소드

Convert string to short

Set default value on error

public static TryParseShort ( this strValue, short defaultValue, bool allowZero ) : short
strValue this string value
defaultValue short default value
allowZero bool allow 0 on convert.
리턴 short

TryParseShort() 공개 정적인 메소드

Convert string to short

Set default value on error

public static TryParseShort ( this strValue, short defaultValue, bool allowZero, NumberStyles numberStyle, CultureInfo culture ) : short
strValue this string value
defaultValue short default value
allowZero bool allow 0 on convert.
numberStyle NumberStyles number style to convert
culture System.Globalization.CultureInfo culture origin
리턴 short

TryParseShortArray() 공개 정적인 메소드

Parse string array in short array
public static TryParseShortArray ( this strValue ) : short[]
strValue this string to parse
리턴 short[]

TryParseShortArray() 공개 정적인 메소드

Parse string array in short array
public static TryParseShortArray ( this strValue, NumberStyles numberStyle, CultureInfo culture ) : short[]
strValue this string to parse
numberStyle NumberStyles number style to convert
culture System.Globalization.CultureInfo culture origin
리턴 short[]

TryParseShortArray() 공개 정적인 메소드

Parse string array in short array
public static TryParseShortArray ( this strValue, short defaultValue ) : short[]
strValue this string to parse
defaultValue short default value when default tryparse
리턴 short[]

TryParseShortArray() 공개 정적인 메소드

Parse string array in short array
public static TryParseShortArray ( this strValue, short defaultValue, NumberStyles numberStyle, CultureInfo culture ) : short[]
strValue this string to parse
defaultValue short default value when default tryparse
numberStyle NumberStyles number style to convert
culture System.Globalization.CultureInfo culture origin
리턴 short[]

TryParseShortArray() 공개 정적인 메소드

Parse string array in short array
public static TryParseShortArray ( this strValue, short defaultValue, bool allowDefaultConversion ) : short[]
strValue this string to parse
defaultValue short default value when default tryparse
allowDefaultConversion bool Allow default tryparse values
리턴 short[]

TryParseShortArray() 공개 정적인 메소드

Parse string array in short array
public static TryParseShortArray ( this strValue, short defaultValue, bool allowDefaultConversion, NumberStyles numberStyle, CultureInfo culture ) : short[]
strValue this string to parse
defaultValue short default value when default tryparse
allowDefaultConversion bool Allow default tryparse values
numberStyle NumberStyles number style to convert
culture System.Globalization.CultureInfo culture origin
리턴 short[]