C# Класс DevUtils.PrimitivesExtensions.LongExtensions

Static long extension
Показать файл Открыть проект

Открытые методы

Метод Описание
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

Описание методов

IsValidLong() публичный статический Метод

Test if string value is a valid long value
public static IsValidLong ( this strValue ) : bool
strValue this string value
Результат bool

IsValidLong() публичный статический Метод

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
Результат bool

TryParseLong() публичный статический Метод

Convert string value to long value
public static TryParseLong ( this strValue ) : long
strValue this string value to convert
Результат long

TryParseLong() публичный статический Метод

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
Результат long

TryParseLong() публичный статический Метод

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
Результат long

TryParseLong() публичный статический Метод

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
Результат long

TryParseLong() публичный статический Метод

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
Результат long

TryParseLong() публичный статический Метод

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
Результат long

TryParseLongArray() публичный статический Метод

Parse string array in short long
public static TryParseLongArray ( this strValue ) : long[]
strValue this string to parse
Результат long[]

TryParseLongArray() публичный статический Метод

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
Результат long[]

TryParseLongArray() публичный статический Метод

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
Результат long[]

TryParseLongArray() публичный статический Метод

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
Результат long[]

TryParseLongArray() публичный статический Метод

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
Результат long[]

TryParseLongArray() публичный статический Метод

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
Результат long[]