FormatUInt32() private method

private FormatUInt32 ( uint value, String format, NumberFormatInfo info ) : String
value uint
format String
info System.Globalization.NumberFormatInfo
return String
示例#1
0
        public String ToString(String format, IFormatProvider provider)
        {
            if (m_value < 0 && format != null && format.Length > 0 && (format[0] == 'X' || format[0] == 'x'))
            {
                uint temp = (uint)(m_value & 0x0000FFFF);
                return(Number.FormatUInt32(temp, format, provider));
            }

            return(Number.FormatInt32(m_value, format, provider));
        }
示例#2
0
        private string ToString(string format, NumberFormatInfo info)
        {
            if ((((this >= 0) || (format == null)) || (format.Length <= 0)) || ((format[0] != 'X') && (format[0] != 'x')))
            {
                return(Number.FormatInt32(this, format, info));
            }
            uint num = (uint)(this & 0xffff);

            return(Number.FormatUInt32(num, format, info));
        }
示例#3
0
        private String ToString(String format, NumberFormatInfo info)
        {
            Contract.Ensures(Contract.Result <String>() != null);

            if (m_value < 0 && format != null && format.Length > 0 && (format[0] == 'X' || format[0] == 'x'))
            {
                uint temp = (uint)(m_value & 0x000000FF);
                return(Number.FormatUInt32(temp, format, info));
            }
            return(Number.FormatInt32(m_value, format, info));
        }
示例#4
0
 public string ToString(string format, IFormatProvider provider)
 {
     return(Number.FormatUInt32(m_value, format, provider));
 }
示例#5
0
 public string ToString(string format)
 {
     return(Number.FormatUInt32(m_value, format, null));
 }
示例#6
0
 public string ToString(IFormatProvider provider)
 {
     return(Number.FormatUInt32(m_value, null, provider));
 }
示例#7
0
 // Converts the current value to a String in base-10 with no extra padding.
 public override string ToString()
 {
     return(Number.FormatUInt32(m_value, null, null));
 }
示例#8
0
 public String ToString(String format, IFormatProvider provider)
 {
     return(Number.FormatUInt32(m_value, format, NumberFormatInfo.GetInstance(provider)));
 }
示例#9
0
 public String ToString(String format, IFormatProvider provider)
 {
     Contract.Ensures(Contract.Result <String>() != null);
     return(Number.FormatUInt32(m_value, format, NumberFormatInfo.GetInstance(provider)));
 }
示例#10
0
 public string ToString([StringSyntax(StringSyntaxAttribute.NumericFormat)] string?format, IFormatProvider?provider)
 {
     return(Number.FormatUInt32(m_value, format, provider));
 }
示例#11
0
 public string ToString([StringSyntax(StringSyntaxAttribute.NumericFormat)] string?format)
 {
     return(Number.FormatUInt32(m_value, format, null));
 }
示例#12
0
 public string ToString(IFormatProvider provider)
 {
     return(Number.FormatUInt32(m_value, null, NumberFormatInfo.GetInstance(provider)));
 }
 public override string ToString()
 {
     return(Number.FormatUInt32((uint)this, null, NumberFormatInfo.CurrentInfo));
 }
 public string ToString(string format, IFormatProvider provider)
 {
     return(Number.FormatUInt32((uint)this, format, NumberFormatInfo.GetInstance(provider)));
 }
 public string ToString(string format)
 {
     return(Number.FormatUInt32((uint)this, format, NumberFormatInfo.CurrentInfo));
 }
示例#16
0
 // The base 10 representation of the number with no extra padding.
 public override String ToString()
 {
     Contract.Ensures(Contract.Result <String>() != null);
     return(Number.FormatUInt32(m_value, null, NumberFormatInfo.CurrentInfo));
 }
示例#17
0
 public String ToString(String format)
 {
     Contract.Ensures(Contract.Result <String>() != null);
     return(Number.FormatUInt32(m_value, format, NumberFormatInfo.CurrentInfo));
 }
示例#18
0
 // Converts the current value to a String in base-10 with no extra padding.
 public override String ToString()
 {
     return(Number.FormatUInt32(m_value, null, NumberFormatInfo.CurrentInfo));
 }
示例#19
0
 public String ToString(String format)
 {
     return(Number.FormatUInt32(m_value, format, NumberFormatInfo.CurrentInfo));
 }
示例#20
0
 //| <include path='docs/doc[@for="UInt16.ToString2"]/*' />
 public String ToString(String format)
 {
     return(Number.FormatUInt32(m_value, format));
 }