public String ToString(String format, IFormatProvider provider) { Contract.Ensures(Contract.Result <String>() != null); if (_value < 0 && format != null && format.Length > 0 && (format[0] == 'X' || format[0] == 'x')) { uint temp = (uint)(_value & 0x000000FF); return(FormatProvider.FormatUInt32(temp, format, provider)); } return(FormatProvider.FormatInt32(_value, format, provider)); }
// The base 10 representation of the number with no extra padding. public override String ToString() { Contract.Ensures(Contract.Result <String>() != null); return(FormatProvider.FormatUInt32(_value, null, null)); }
public String ToString(String format, IFormatProvider provider) { Contract.Ensures(Contract.Result <String>() != null); return(FormatProvider.FormatUInt32(_value, format, provider)); }