Esempio n. 1
0
        public String ToString(IFormatProvider provider)
        {
            Contract.Ensures(Contract.Result <String>() != null);
            // if (provider == null)
            // throw new ArgumentNullException("provider");

            return(FormatProvider.FormatInt32(_value, null, provider));
        }
Esempio n. 2
0
        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));
        }
Esempio n. 3
0
 public String ToString(String format, IFormatProvider provider)
 {
     Contract.Ensures(Contract.Result <String>() != null);
     return(FormatProvider.FormatInt32(m_value, format, provider));
 }
Esempio n. 4
0
 public override String ToString()
 {
     Contract.Ensures(Contract.Result <String>() != null);
     return(FormatProvider.FormatInt32(m_value, null, null));
 }