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