ThisToThat/ThisToThat/ToInt32Extensions.cs
/// <summary>
/// Converts and returns this string's value as a nullable Int32.
/// Null is returned if the value does not successfully parse to Int32.
/// </summary>
/// <returns>This string's value converted to a nullable Int32.</returns>
Converts and returns this string's value as a nullable Int32.
Null is returned if the value does not successfully parse to Int32.
Converts and returns this string ' s value as a nullable Int32 . Null is returned if the value does not successfully parse to Int32 .
public static Int32? ToInt32Nullable(this string strThisString)
        {
            Int32 int32Return;
            return Int32.TryParse(strThisString, out int32Return) ? int32Return : (Int32?)null;
        }
public static Int32 ? ToInt32Nullable ( this string strThisString ) { Int32 int32Return ; return Int32 . TryParse ( strThisString , out int32Return ) ? int32Return : ( Int32 ? ) null ; }
Converts and returns this string's value as a nullable Int32.
Converts and returns this string ' s value as a nullable Int32 .
This string's value converted to a nullable Int32.
This string ' s value converted to a nullable Int32 .
string
this