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