C# Class DevUtils.PrimitivesExtensions.LongExtensions

Static long extension
Mostra file Open project: jornfilho/.net-Dev-Utils

Public Methods

Method Description
IsValidLong ( this strValue ) : bool

Test if string value is a valid long value

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

Test if string value is a valid long value

TryParseLong ( this strValue ) : long

Convert string value to long value

TryParseLong ( this strValue, NumberStyles numberStyle, CultureInfo culture ) : long

Convert string value to long value

TryParseLong ( this strValue, long defaultValue ) : long

Convert string value to long value

TryParseLong ( this strValue, long defaultValue, NumberStyles numberStyle, CultureInfo culture ) : long

Convert string value to long value

TryParseLong ( this strValue, long defaultValue, bool allowZero ) : long

Convert string value to long value

TryParseLong ( this strValue, long defaultValue, bool allowZero, NumberStyles numberStyle, CultureInfo culture ) : long

Convert string value to long value

TryParseLongArray ( this strValue ) : long[]

Parse string array in short long

TryParseLongArray ( this strValue, NumberStyles numberStyle, CultureInfo culture ) : long[]

Parse string array in long array

TryParseLongArray ( this strValue, long defaultValue ) : long[]

Parse string array in long array

TryParseLongArray ( this strValue, long defaultValue, NumberStyles numberStyle, CultureInfo culture ) : long[]

Parse string array in long array

TryParseLongArray ( this strValue, long defaultValue, bool allowDefaultConversion ) : long[]

Parse string array in long array

TryParseLongArray ( this strValue, long defaultValue, bool allowDefaultConversion, NumberStyles numberStyle, CultureInfo culture ) : long[]

Parse string array in long array

Method Details

IsValidLong() public static method

Test if string value is a valid long value
public static IsValidLong ( this strValue ) : bool
strValue this string value
return bool

IsValidLong() public static method

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

TryParseLong() public static method

Convert string value to long value
public static TryParseLong ( this strValue ) : long
strValue this string value to convert
return long

TryParseLong() public static method

Convert string value to long value
public static TryParseLong ( this strValue, NumberStyles numberStyle, CultureInfo culture ) : long
strValue this string value to convert
numberStyle NumberStyles string number style
culture System.Globalization.CultureInfo current culture
return long

TryParseLong() public static method

Convert string value to long value
public static TryParseLong ( this strValue, long defaultValue ) : long
strValue this string value to convert
defaultValue long default value when error on convert value
return long

TryParseLong() public static method

Convert string value to long value
public static TryParseLong ( this strValue, long defaultValue, NumberStyles numberStyle, CultureInfo culture ) : long
strValue this string value to convert
defaultValue long default value when error on convert value
numberStyle NumberStyles string number style
culture System.Globalization.CultureInfo current culture
return long

TryParseLong() public static method

Convert string value to long value
public static TryParseLong ( this strValue, long defaultValue, bool allowZero ) : long
strValue this string value to convert
defaultValue long default value when error on convert value
allowZero bool allow zero on convert
return long

TryParseLong() public static method

Convert string value to long value
public static TryParseLong ( this strValue, long defaultValue, bool allowZero, NumberStyles numberStyle, CultureInfo culture ) : long
strValue this string value to convert
defaultValue long default value when error on convert value
allowZero bool allow zero on convert
numberStyle NumberStyles string number style
culture System.Globalization.CultureInfo current culture
return long

TryParseLongArray() public static method

Parse string array in short long
public static TryParseLongArray ( this strValue ) : long[]
strValue this string to parse
return long[]

TryParseLongArray() public static method

Parse string array in long array
public static TryParseLongArray ( this strValue, NumberStyles numberStyle, CultureInfo culture ) : long[]
strValue this string to parse
numberStyle NumberStyles number style to convert
culture System.Globalization.CultureInfo culture origin
return long[]

TryParseLongArray() public static method

Parse string array in long array
public static TryParseLongArray ( this strValue, long defaultValue ) : long[]
strValue this string to parse
defaultValue long default value when default tryparse
return long[]

TryParseLongArray() public static method

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

TryParseLongArray() public static method

Parse string array in long array
public static TryParseLongArray ( this strValue, long defaultValue, bool allowDefaultConversion ) : long[]
strValue this string to parse
defaultValue long default value when default tryparse
allowDefaultConversion bool Allow default tryparse values
return long[]

TryParseLongArray() public static method

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