StringUtils.ParseInt64 method

Version 1.1.28
.NET Framework 4.8
Namespace Skybrud.Essentials.Strings
Assembly Skybrud.Essentials.dll

ParseInt64(string)

Static

Parses the specified str into an instance of long . If the parsing fails, the default value of long will be returned instead.

public static long ParseInt64(string str)

Parameters

str String

The string to be parsed.

Returns

An instance of long .

ParseInt64(string, long)

Static

Parses the specified str into an instance of long . If the parsing fails, fallback will be returned instead.

public static long ParseInt64(string str, long fallback)

Parameters

str String

The string to be parsed.

fallback long

The fallback value that will be returned if the parsing fails.

Returns

An instance of long .