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