ThisToThat/ThisToThat/ToInt64Extensions.cs
/// <summary>
/// Converts and returns this string's value as Int64.
/// The default value passed in is returned if the string does not successfully parse to Int64.
/// </summary>
/// <returns>This string converted to Int64, or the default value if conversion unsuccessful.</returns>
Converts and returns this string's value as Int64.
The default value passed in is returned if the string does not successfully parse to Int64.
Converts and returns this string ' s value as Int64 . The default value passed in is returned if the string does not successfully parse to Int64 .
public static Int64 ToInt64OrDefault(this string strThisString, Int64 int64Default = default(Int64))
        {
            Int64 int64Return;
            return Int64.TryParse(strThisString, out int64Return) ? int64Return : int64Default;
        }
public static Int64 ToInt64OrDefault ( this string strThisString , Int64 int64Default = default ( Int64 ) ) { Int64 int64Return ; return Int64 . TryParse ( strThisString , out int64Return ) ? int64Return : int64Default ; }
Converts and returns this string's value as Int64.
Converts and returns this string ' s value as Int64 .
This string converted to Int64, or the default value if conversion unsuccessful.
This string converted to Int64 or the default value if conversion unsuccessful .
string
this
int64Default
Int64