Пример #1
0
 public string ToString(string format)
 {
     return(NumberFormatter.Format(format, LongValue(), null));
 }
Пример #2
0
 public string ToString(string format, IFormatProvider provider)
 {
     return(NumberFormatter.Format(format, LongValue(), provider));
 }
Пример #3
0
        public string ToString(string format, IFormatProvider formatProvider)
        {
            NumberFormatInfo nfi = NumberFormatInfo.GetInstance(formatProvider);

            return(NumberFormatter.NumberToString(format, this.m_value, nfi));
        }
Пример #4
0
 public string ToString(string format, IFormatProvider formatProvider)
 {
     return(NumberFormatter.Format(format, ((long)IntValue()) & 0xFFFFFFFFL, null));
 }
Пример #5
0
 [Inline, DexNative] // avoid boxing, do not generate actual method
 public string ToString(string format, IFormatProvider provider)
 {
     return(NumberFormatter.Format(format, this, provider));
 }
Пример #6
0
 public override string ToString()
 {
     return(NumberFormatter.FormatGeneral(new NumberFormatter.NumberStore(this.m_value)));
 }
Пример #7
0
		private static NumberFormatter GetInstance()
		{
			NumberFormatter res = threadNumberFormatter;
			threadNumberFormatter = null;
			if (res == null)
				return new NumberFormatter (Thread.CurrentThread);
			res.CurrentCulture = Thread.CurrentThread.CurrentCulture;
			return res;
		}
Пример #8
0
 public string ToString(string format, IFormatProvider provider)
 {
     return(NumberFormatter.NumberToString(format, m_value, provider));
 }
Пример #9
0
		public string ToString (IFormatProvider provider)
		{
			return NumberFormatter.NumberToString (m_value, provider);
		}
Пример #10
0
 public string ToString(string format)
 {
     return(NumberFormatter.Format(format, (int)ShortValue(), null));
 }
Пример #11
0
 /// <summary>Converts the numeric value of this instance to its equivalent string representation.</summary>
 /// <returns>The string representation of the value of this instance, consisting of a minus sign if the value is negative, and a sequence of digits ranging from 0 to 9 with no leading zeroes.</returns>
 /// <filterpriority>1</filterpriority>
 public override string ToString()
 {
     return(NumberFormatter.NumberToString((int)this, null));
 }
Пример #12
0
 [Inline, DexNative] // avoid boxing, do not generate actual method
 public new string ToString()
 {
     return(NumberFormatter.Format((int)this, null));
 }
Пример #13
0
 [Inline, DexNative] // avoid boxing, do not generate actual method
 public string ToString(string format, IFormatProvider formatProvider)
 {
     return(NumberFormatter.Format(format, (long)this, null));
 }
Пример #14
0
 /// <summary>Converts the numeric value of this instance to its equivalent string representation using the specified culture-specific format information.</summary>
 /// <returns>The string representation of the value of this instance as specified by <paramref name="provider" />.</returns>
 /// <param name="provider">An <see cref="T:System.IFormatProvider" /> that supplies culture-specific formatting information. </param>
 /// <filterpriority>1</filterpriority>
 public string ToString(IFormatProvider provider)
 {
     return(NumberFormatter.NumberToString(this, provider));
 }
Пример #15
0
		private void Release()
		{
			threadNumberFormatter = this;
		}
Пример #16
0
 public override string ToString()
 {
     return(NumberFormatter.NumberToString(m_value, null));
 }
Пример #17
0
 public string ToString(string format, IFormatProvider provider)
 {
     return(NumberFormatter.Format(format, IntValue() & 0xFFFF, provider));
 }
Пример #18
0
 [Inline, DexNative] // avoid boxing, do not generate actual method
 public string ToString(string format)
 {
     return(NumberFormatter.Format(format, this, null));
 }
Пример #19
0
		private static NumberFormatter GetInstance (IFormatProvider fp)
		{
			if (fp != null) {
				if (userFormatProvider == null) {
					Interlocked.CompareExchange (ref userFormatProvider, new NumberFormatter (null), null);
				}

				return userFormatProvider;
			}

			NumberFormatter res = threadNumberFormatter;
			threadNumberFormatter = null;
			if (res == null)
				return new NumberFormatter (Thread.CurrentThread);
			res.CurrentCulture = Thread.CurrentThread.CurrentCulture;
			return res;
		}
Пример #20
0
 public string ToString(string format, IFormatProvider formatProvider)
 {
     return(NumberFormatter.NumberToString(format, mValue, NumberFormatInfo.GetInstance(formatProvider)));
 }
Пример #21
0
		private void Release()
		{
			if (this != userFormatProvider)
				threadNumberFormatter = this;
		}
Пример #22
0
 public string ToString(IFormatProvider formatProvider)
 {
     return(NumberFormatter.FormatGeneral(new NumberFormatter.NumberStore(this.m_value), formatProvider));
 }
Пример #23
0
 [Inline, DexNative] // avoid boxing, do not generate actual method
 public string ToString(IFormatProvider provider)
 {
     return(NumberFormatter.Format((int)this, provider));
 }
Пример #24
0
 public string ToString(IFormatProvider provider)
 {
     return(NumberFormatter.Format(_IntValue(), provider));
 }
Пример #25
0
 [Inline, DexNative] // avoid boxing, do not generate actual method
 public new string ToString()
 {
     return(NumberFormatter.FormatULong(this, null));
 }