FormatUInt32() private méthode

private FormatUInt32 ( uint value, String format, NumberFormatInfo info ) : String
value uint
format String
info System.Globalization.NumberFormatInfo
Résultat String
Exemple #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));
        }
Exemple #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));
        }
Exemple #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));
        }
Exemple #4
0
 public string ToString(string format, IFormatProvider provider)
 {
     return(Number.FormatUInt32(m_value, format, provider));
 }
Exemple #5
0
 public string ToString(string format)
 {
     return(Number.FormatUInt32(m_value, format, null));
 }
Exemple #6
0
 public string ToString(IFormatProvider provider)
 {
     return(Number.FormatUInt32(m_value, null, provider));
 }
Exemple #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));
 }
Exemple #8
0
 public String ToString(String format, IFormatProvider provider)
 {
     return(Number.FormatUInt32(m_value, format, NumberFormatInfo.GetInstance(provider)));
 }
Exemple #9
0
 public String ToString(String format, IFormatProvider provider)
 {
     Contract.Ensures(Contract.Result <String>() != null);
     return(Number.FormatUInt32(m_value, format, NumberFormatInfo.GetInstance(provider)));
 }
Exemple #10
0
 public string ToString([StringSyntax(StringSyntaxAttribute.NumericFormat)] string?format, IFormatProvider?provider)
 {
     return(Number.FormatUInt32(m_value, format, provider));
 }
Exemple #11
0
 public string ToString([StringSyntax(StringSyntaxAttribute.NumericFormat)] string?format)
 {
     return(Number.FormatUInt32(m_value, format, null));
 }
Exemple #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));
 }
Exemple #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));
 }
Exemple #17
0
 public String ToString(String format)
 {
     Contract.Ensures(Contract.Result <String>() != null);
     return(Number.FormatUInt32(m_value, format, NumberFormatInfo.CurrentInfo));
 }
Exemple #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));
 }
Exemple #19
0
 public String ToString(String format)
 {
     return(Number.FormatUInt32(m_value, format, NumberFormatInfo.CurrentInfo));
 }
Exemple #20
0
 //| <include path='docs/doc[@for="UInt16.ToString2"]/*' />
 public String ToString(String format)
 {
     return(Number.FormatUInt32(m_value, format));
 }