401 lines
24 KiB
C#
401 lines
24 KiB
C#
using System;
|
|
using System.Globalization;
|
|
using System.Runtime.InteropServices;
|
|
|
|
namespace System
|
|
{
|
|
/// <summary>Represents a 16-bit unsigned integer.</summary>
|
|
/// <filterpriority>1</filterpriority>
|
|
// Token: 0x02000016 RID: 22
|
|
[CLSCompliant(false)]
|
|
[ComVisible(true)]
|
|
[Serializable]
|
|
public struct UInt16 : IFormattable, IConvertible, IComparable, IComparable<ushort>, IEquatable<ushort>
|
|
{
|
|
/// <summary>For a description of this member, see <see cref="M:System.IConvertible.ToBoolean(System.IFormatProvider)" />. </summary>
|
|
/// <returns>true if the value of the current instance is not zero; otherwise, false.</returns>
|
|
/// <param name="provider">This parameter is ignored.</param>
|
|
// Token: 0x06000150 RID: 336 RVA: 0x00005CB4 File Offset: 0x00003EB4
|
|
bool IConvertible.ToBoolean(IFormatProvider provider)
|
|
{
|
|
return Convert.ToBoolean(this);
|
|
}
|
|
|
|
/// <summary>For a description of this member, see <see cref="M:System.IConvertible.ToByte(System.IFormatProvider)" />. </summary>
|
|
/// <returns>The value of the current instance, converted to a <see cref="T:System.Byte" />.</returns>
|
|
/// <param name="provider">This parameter is ignored.</param>
|
|
// Token: 0x06000151 RID: 337 RVA: 0x00005CC0 File Offset: 0x00003EC0
|
|
byte IConvertible.ToByte(IFormatProvider provider)
|
|
{
|
|
return Convert.ToByte(this);
|
|
}
|
|
|
|
/// <summary>For a description of this member, see <see cref="M:System.IConvertible.ToChar(System.IFormatProvider)" />. </summary>
|
|
/// <returns>The value of the current instance, converted to a <see cref="T:System.Char" />.</returns>
|
|
/// <param name="provider">This parameter is ignored.</param>
|
|
// Token: 0x06000152 RID: 338 RVA: 0x00005CCC File Offset: 0x00003ECC
|
|
char IConvertible.ToChar(IFormatProvider provider)
|
|
{
|
|
return Convert.ToChar(this);
|
|
}
|
|
|
|
/// <summary>This conversion is not supported. Attempting to use this method throws an <see cref="T:System.InvalidCastException" />.</summary>
|
|
/// <returns>This conversion is not supported. No value is returned.</returns>
|
|
/// <param name="provider">This parameter is ignored.</param>
|
|
/// <exception cref="T:System.InvalidCastException">In all cases.</exception>
|
|
// Token: 0x06000153 RID: 339 RVA: 0x00005CD8 File Offset: 0x00003ED8
|
|
DateTime IConvertible.ToDateTime(IFormatProvider provider)
|
|
{
|
|
return Convert.ToDateTime(this);
|
|
}
|
|
|
|
/// <summary>For a description of this member, see <see cref="M:System.IConvertible.ToDecimal(System.IFormatProvider)" />. </summary>
|
|
/// <returns>The current value of this instance, converted to a <see cref="T:System.Decimal" />.</returns>
|
|
/// <param name="provider">This parameter is ignored.</param>
|
|
// Token: 0x06000154 RID: 340 RVA: 0x00005CE4 File Offset: 0x00003EE4
|
|
decimal IConvertible.ToDecimal(IFormatProvider provider)
|
|
{
|
|
return Convert.ToDecimal(this);
|
|
}
|
|
|
|
/// <summary>For a description of this member, see <see cref="M:System.IConvertible.ToDouble(System.IFormatProvider)" />. </summary>
|
|
/// <returns>The current value of this instance, converted to a <see cref="T:System.Double" />.</returns>
|
|
/// <param name="provider">This parameter is ignored.</param>
|
|
// Token: 0x06000155 RID: 341 RVA: 0x00005CF0 File Offset: 0x00003EF0
|
|
double IConvertible.ToDouble(IFormatProvider provider)
|
|
{
|
|
return Convert.ToDouble(this);
|
|
}
|
|
|
|
/// <summary>For a description of this member, see <see cref="M:System.IConvertible.ToInt16(System.IFormatProvider)" />. </summary>
|
|
/// <returns>The current value of this instance, converted to an <see cref="T:System.Int16" />.</returns>
|
|
/// <param name="provider">This parameter is ignored.</param>
|
|
// Token: 0x06000156 RID: 342 RVA: 0x00005CFC File Offset: 0x00003EFC
|
|
short IConvertible.ToInt16(IFormatProvider provider)
|
|
{
|
|
return Convert.ToInt16(this);
|
|
}
|
|
|
|
/// <summary>For a description of this member, see <see cref="M:System.IConvertible.ToInt32(System.IFormatProvider)" />. </summary>
|
|
/// <returns>The value of this instance, converted to an <see cref="T:System.Int32" />.</returns>
|
|
/// <param name="provider">This parameter is ignored.</param>
|
|
// Token: 0x06000157 RID: 343 RVA: 0x00005D08 File Offset: 0x00003F08
|
|
int IConvertible.ToInt32(IFormatProvider provider)
|
|
{
|
|
return Convert.ToInt32(this);
|
|
}
|
|
|
|
/// <summary>For a description of this member, see <see cref="M:System.IConvertible.ToInt64(System.IFormatProvider)" />. </summary>
|
|
/// <returns>The current value of this instance, converted to an <see cref="T:System.Int64" />.</returns>
|
|
/// <param name="provider">This parameter is ignored.</param>
|
|
// Token: 0x06000158 RID: 344 RVA: 0x00005D14 File Offset: 0x00003F14
|
|
long IConvertible.ToInt64(IFormatProvider provider)
|
|
{
|
|
return Convert.ToInt64(this);
|
|
}
|
|
|
|
/// <summary>For a description of this member, see <see cref="M:System.IConvertible.ToSByte(System.IFormatProvider)" />. </summary>
|
|
/// <returns>The current value of this instance, converted to an <see cref="T:System.SByte" />.</returns>
|
|
/// <param name="provider">This parameter is ignored.</param>
|
|
// Token: 0x06000159 RID: 345 RVA: 0x00005D20 File Offset: 0x00003F20
|
|
sbyte IConvertible.ToSByte(IFormatProvider provider)
|
|
{
|
|
return Convert.ToSByte(this);
|
|
}
|
|
|
|
/// <summary>For a description of this member, see <see cref="M:System.IConvertible.ToSingle(System.IFormatProvider)" />. </summary>
|
|
/// <returns>The current value pf this instance, converted to a <see cref="T:System.Single" />.</returns>
|
|
/// <param name="provider">This parameter is ignored.</param>
|
|
// Token: 0x0600015A RID: 346 RVA: 0x00005D2C File Offset: 0x00003F2C
|
|
float IConvertible.ToSingle(IFormatProvider provider)
|
|
{
|
|
return Convert.ToSingle(this);
|
|
}
|
|
|
|
/// <summary>For a description of this member, see <see cref="M:System.IConvertible.ToType(System.Type,System.IFormatProvider)" />. </summary>
|
|
/// <returns>The current value of this instance, converted to <paramref name="type" />.</returns>
|
|
/// <param name="type">The type to which to convert this <see cref="T:System.UInt16" /> value.</param>
|
|
/// <param name="provider">An <see cref="T:System.IFormatProvider" /> implementation that supplies information about the format of the returned value.</param>
|
|
// Token: 0x0600015B RID: 347 RVA: 0x00005D38 File Offset: 0x00003F38
|
|
object IConvertible.ToType(Type targetType, IFormatProvider provider)
|
|
{
|
|
if (targetType == null)
|
|
{
|
|
throw new ArgumentNullException("targetType");
|
|
}
|
|
return Convert.ToType(this, targetType, provider, false);
|
|
}
|
|
|
|
/// <summary>For a description of this member, see <see cref="M:System.IConvertible.ToUInt16(System.IFormatProvider)" />. </summary>
|
|
/// <returns>The current value of this instance, unchanged.</returns>
|
|
/// <param name="provider">This parameter is ignored.</param>
|
|
// Token: 0x0600015C RID: 348 RVA: 0x00005D68 File Offset: 0x00003F68
|
|
ushort IConvertible.ToUInt16(IFormatProvider provider)
|
|
{
|
|
return this;
|
|
}
|
|
|
|
/// <summary>For a description of this member, see <see cref="M:System.IConvertible.ToUInt32(System.IFormatProvider)" />. </summary>
|
|
/// <returns>The current value of this instance, converted to a <see cref="T:System.UInt32" />.</returns>
|
|
/// <param name="provider">This parameter is ignored.</param>
|
|
// Token: 0x0600015D RID: 349 RVA: 0x00005D6C File Offset: 0x00003F6C
|
|
uint IConvertible.ToUInt32(IFormatProvider provider)
|
|
{
|
|
return Convert.ToUInt32(this);
|
|
}
|
|
|
|
/// <summary>For a description of this member, see <see cref="M:System.IConvertible.ToUInt64(System.IFormatProvider)" />. </summary>
|
|
/// <returns>The current value of this instance, converted to a <see cref="T:System.UInt64" />.</returns>
|
|
/// <param name="provider">This parameter is ignored.</param>
|
|
// Token: 0x0600015E RID: 350 RVA: 0x00005D78 File Offset: 0x00003F78
|
|
ulong IConvertible.ToUInt64(IFormatProvider provider)
|
|
{
|
|
return Convert.ToUInt64(this);
|
|
}
|
|
|
|
/// <summary>Compares this instance to a specified object and returns an indication of their relative values.</summary>
|
|
/// <returns>A signed number indicating the relative values of this instance and <paramref name="value" />.Return Value Description Less than zero This instance is less than <paramref name="value" />. Zero This instance is equal to <paramref name="value" />. Greater than zero This instance is greater than <paramref name="value" />.-or- <paramref name="value" /> is null. </returns>
|
|
/// <param name="value">An object to compare, or null. </param>
|
|
/// <exception cref="T:System.ArgumentException">
|
|
/// <paramref name="value" /> is not a <see cref="T:System.UInt16" />. </exception>
|
|
/// <filterpriority>2</filterpriority>
|
|
// Token: 0x0600015F RID: 351 RVA: 0x00005D84 File Offset: 0x00003F84
|
|
public int CompareTo(object value)
|
|
{
|
|
if (value == null)
|
|
{
|
|
return 1;
|
|
}
|
|
if (!(value is ushort))
|
|
{
|
|
throw new ArgumentException(Locale.GetText("Value is not a System.UInt16."));
|
|
}
|
|
return (int)(this - (ushort)value);
|
|
}
|
|
|
|
/// <summary>Returns a value indicating whether this instance is equal to a specified object.</summary>
|
|
/// <returns>true if <paramref name="obj" /> is an instance of <see cref="T:System.UInt16" /> and equals the value of this instance; otherwise, false.</returns>
|
|
/// <param name="obj">An object to compare to this instance. </param>
|
|
/// <filterpriority>2</filterpriority>
|
|
// Token: 0x06000160 RID: 352 RVA: 0x00005DC0 File Offset: 0x00003FC0
|
|
public override bool Equals(object obj)
|
|
{
|
|
return obj is ushort && (ushort)obj == this;
|
|
}
|
|
|
|
/// <summary>Returns the hash code for this instance.</summary>
|
|
/// <returns>A 32-bit signed integer hash code.</returns>
|
|
/// <filterpriority>2</filterpriority>
|
|
// Token: 0x06000161 RID: 353 RVA: 0x00005DDC File Offset: 0x00003FDC
|
|
public override int GetHashCode()
|
|
{
|
|
return (int)this;
|
|
}
|
|
|
|
/// <summary>Compares this instance to a specified 16-bit unsigned integer and returns an indication of their relative values.</summary>
|
|
/// <returns>A signed number indicating the relative values of this instance and <paramref name="value" />.Return Value Description Less than zero This instance is less than <paramref name="value" />. Zero This instance is equal to <paramref name="value" />. Greater than zero This instance is greater than <paramref name="value" />. </returns>
|
|
/// <param name="value">An unsigned integer to compare. </param>
|
|
/// <filterpriority>2</filterpriority>
|
|
// Token: 0x06000162 RID: 354 RVA: 0x00005DE0 File Offset: 0x00003FE0
|
|
public int CompareTo(ushort value)
|
|
{
|
|
return (int)(this - value);
|
|
}
|
|
|
|
/// <summary>Returns a value indicating whether this instance is equal to a specified <see cref="T:System.UInt16" /> value.</summary>
|
|
/// <returns>true if <paramref name="obj" /> has the same value as this instance; otherwise, false.</returns>
|
|
/// <param name="obj">A <see cref="T:System.UInt16" /> value to compare to this instance.</param>
|
|
/// <filterpriority>2</filterpriority>
|
|
// Token: 0x06000163 RID: 355 RVA: 0x00005DE8 File Offset: 0x00003FE8
|
|
public bool Equals(ushort obj)
|
|
{
|
|
return obj == this;
|
|
}
|
|
|
|
/// <summary>Converts the string representation of a number in a specified culture-specific format to its 16-bit unsigned integer equivalent.</summary>
|
|
/// <returns>A 16-bit unsigned integer equivalent to the number specified in <paramref name="s" />.</returns>
|
|
/// <param name="s">A string that represents the number to convert. </param>
|
|
/// <param name="provider">An object that supplies culture-specific formatting information about <paramref name="s" />. </param>
|
|
/// <exception cref="T:System.ArgumentNullException">
|
|
/// <paramref name="s" /> is null. </exception>
|
|
/// <exception cref="T:System.FormatException">
|
|
/// <paramref name="s" /> is not in the correct format.</exception>
|
|
/// <exception cref="T:System.OverflowException">
|
|
/// <paramref name="s" /> represents a number less than <see cref="F:System.UInt16.MinValue" /> or greater than <see cref="F:System.UInt16.MaxValue" />. </exception>
|
|
/// <filterpriority>1</filterpriority>
|
|
// Token: 0x06000164 RID: 356 RVA: 0x00005DF0 File Offset: 0x00003FF0
|
|
[CLSCompliant(false)]
|
|
public static ushort Parse(string s, IFormatProvider provider)
|
|
{
|
|
return ushort.Parse(s, NumberStyles.Integer, provider);
|
|
}
|
|
|
|
/// <summary>Converts the string representation of a number in a specified style to its 16-bit unsigned integer equivalent.</summary>
|
|
/// <returns>A 16-bit unsigned integer equivalent to the number specified in <paramref name="s" />.</returns>
|
|
/// <param name="s">A string that represents the number to convert. The string is interpreted by using the style specified by the <paramref name="style" /> parameter.</param>
|
|
/// <param name="style">A bitwise combination of the enumeration values that specify the permitted format of <paramref name="s" />. A typical value to specify is <see cref="F:System.Globalization.NumberStyles.Integer" />.</param>
|
|
/// <exception cref="T:System.ArgumentNullException">
|
|
/// <paramref name="s" /> is null. </exception>
|
|
/// <exception cref="T:System.ArgumentException">
|
|
/// <paramref name="style" /> is not a <see cref="T:System.Globalization.NumberStyles" /> value. -or-<paramref name="style" /> is not a combination of the <see cref="F:System.Globalization.NumberStyles.AllowHexSpecifier" /> and <see cref="F:System.Globalization.NumberStyles.HexNumber" /> values.</exception>
|
|
/// <exception cref="T:System.FormatException">
|
|
/// <paramref name="s" /> is not in a format compliant with <paramref name="style" />. </exception>
|
|
/// <exception cref="T:System.OverflowException">
|
|
/// <paramref name="s" /> represents a number less than <see cref="F:System.UInt16.MinValue" /> or greater than <see cref="F:System.UInt16.MaxValue" />. -or-<paramref name="s" /> includes non-zero, fractional digits.</exception>
|
|
/// <filterpriority>1</filterpriority>
|
|
// Token: 0x06000165 RID: 357 RVA: 0x00005DFC File Offset: 0x00003FFC
|
|
[CLSCompliant(false)]
|
|
public static ushort Parse(string s, NumberStyles style)
|
|
{
|
|
return ushort.Parse(s, style, null);
|
|
}
|
|
|
|
/// <summary>Converts the string representation of a number in a specified style and culture-specific format to its 16-bit unsigned integer equivalent.</summary>
|
|
/// <returns>A 16-bit unsigned integer equivalent to the number specified in <paramref name="s" />.</returns>
|
|
/// <param name="s">A string that represents the number to convert. The string is interpreted by using the style specified by the <paramref name="style" /> parameter.</param>
|
|
/// <param name="style">A bitwise combination of enumeration values that indicate the style elements that can be present in <paramref name="s" />. A typical value to specify is <see cref="F:System.Globalization.NumberStyles.Integer" />.</param>
|
|
/// <param name="provider">An object that supplies culture-specific formatting information about <paramref name="s" />. </param>
|
|
/// <exception cref="T:System.ArgumentNullException">
|
|
/// <paramref name="s" /> is null. </exception>
|
|
/// <exception cref="T:System.ArgumentException">
|
|
/// <paramref name="style" /> is not a <see cref="T:System.Globalization.NumberStyles" /> value. -or-<paramref name="style" /> is not a combination of <see cref="F:System.Globalization.NumberStyles.AllowHexSpecifier" /> and <see cref="F:System.Globalization.NumberStyles.HexNumber" /> values.</exception>
|
|
/// <exception cref="T:System.FormatException">
|
|
/// <paramref name="s" /> is not in a format compliant with <paramref name="style" />. </exception>
|
|
/// <exception cref="T:System.OverflowException">
|
|
/// <paramref name="s" /> represents a number less than <see cref="F:System.UInt16.MinValue" /> or greater than <see cref="F:System.UInt16.MaxValue" />.-or-<paramref name="s" /> includes non-zero, fractional digits. </exception>
|
|
/// <filterpriority>1</filterpriority>
|
|
// Token: 0x06000166 RID: 358 RVA: 0x00005E08 File Offset: 0x00004008
|
|
[CLSCompliant(false)]
|
|
public static ushort Parse(string s, NumberStyles style, IFormatProvider provider)
|
|
{
|
|
uint num = uint.Parse(s, style, provider);
|
|
if (num > 65535U)
|
|
{
|
|
throw new OverflowException(Locale.GetText("Value too large."));
|
|
}
|
|
return (ushort)num;
|
|
}
|
|
|
|
/// <summary>Converts the string representation of a number to its 16-bit unsigned integer equivalent.</summary>
|
|
/// <returns>A 16-bit unsigned integer equivalent to the number contained in <paramref name="s" />.</returns>
|
|
/// <param name="s">A string that represents the number to convert. </param>
|
|
/// <exception cref="T:System.ArgumentNullException">
|
|
/// <paramref name="s" /> is null. </exception>
|
|
/// <exception cref="T:System.FormatException">
|
|
/// <paramref name="s" /> is not in the correct format. </exception>
|
|
/// <exception cref="T:System.OverflowException">
|
|
/// <paramref name="s" /> represents a number less than <see cref="F:System.UInt16.MinValue" /> or greater than <see cref="F:System.UInt16.MaxValue" />. </exception>
|
|
/// <filterpriority>1</filterpriority>
|
|
// Token: 0x06000167 RID: 359 RVA: 0x00005E3C File Offset: 0x0000403C
|
|
[CLSCompliant(false)]
|
|
public static ushort Parse(string s)
|
|
{
|
|
return ushort.Parse(s, NumberStyles.Number, null);
|
|
}
|
|
|
|
/// <summary>Converts the string representation of a number to its 16-bit unsigned integer equivalent. A return value indicates whether the conversion succeeded or failed.</summary>
|
|
/// <returns>true if <paramref name="s" /> was converted successfully; otherwise, false.</returns>
|
|
/// <param name="s">A string that represents the number to convert. </param>
|
|
/// <param name="result">When this method returns, contains the 16-bit unsigned integer value that is equivalent to the number contained in <paramref name="s" />, if the conversion succeeded, or zero if the conversion failed. The conversion fails if the <paramref name="s" /> parameter is null, is not in the correct format. , or represents a number less than <see cref="F:System.UInt16.MinValue" /> or greater than <see cref="F:System.UInt16.MaxValue" />. This parameter is passed uninitialized. </param>
|
|
/// <filterpriority>1</filterpriority>
|
|
// Token: 0x06000168 RID: 360 RVA: 0x00005E48 File Offset: 0x00004048
|
|
[CLSCompliant(false)]
|
|
public static bool TryParse(string s, out ushort result)
|
|
{
|
|
return ushort.TryParse(s, NumberStyles.Integer, null, out result);
|
|
}
|
|
|
|
/// <summary>Converts the string representation of a number in a specified style and culture-specific format to its 16-bit unsigned integer equivalent. A return value indicates whether the conversion succeeded or failed.</summary>
|
|
/// <returns>true if <paramref name="s" /> was converted successfully; otherwise, false.</returns>
|
|
/// <param name="s">A string that represents the number to convert. The string is interpreted by using the style specified by the <paramref name="style" /> parameter.</param>
|
|
/// <param name="style">A bitwise combination of enumeration values that indicates the permitted format of <paramref name="s" />. A typical value to specify is <see cref="F:System.Globalization.NumberStyles.Integer" />.</param>
|
|
/// <param name="provider">An object that supplies culture-specific formatting information about <paramref name="s" />. </param>
|
|
/// <param name="result">When this method returns, contains the 16-bit unsigned integer value equivalent to the number contained in <paramref name="s" />, if the conversion succeeded, or zero if the conversion failed. The conversion fails if the <paramref name="s" /> parameter is null, is not in a format compliant with <paramref name="style" />, or represents a number less than <see cref="F:System.UInt16.MinValue" /> or greater than <see cref="F:System.UInt16.MaxValue" />. This parameter is passed uninitialized. </param>
|
|
/// <exception cref="T:System.ArgumentException">
|
|
/// <paramref name="style" /> is not a <see cref="T:System.Globalization.NumberStyles" /> value. -or-<paramref name="style" /> is not a combination of <see cref="F:System.Globalization.NumberStyles.AllowHexSpecifier" /> and <see cref="F:System.Globalization.NumberStyles.HexNumber" /> values.</exception>
|
|
/// <filterpriority>1</filterpriority>
|
|
// Token: 0x06000169 RID: 361 RVA: 0x00005E54 File Offset: 0x00004054
|
|
[CLSCompliant(false)]
|
|
public static bool TryParse(string s, NumberStyles style, IFormatProvider provider, out ushort result)
|
|
{
|
|
result = 0;
|
|
uint num;
|
|
if (!uint.TryParse(s, style, provider, out num))
|
|
{
|
|
return false;
|
|
}
|
|
if (num > 65535U)
|
|
{
|
|
return false;
|
|
}
|
|
result = (ushort)num;
|
|
return true;
|
|
}
|
|
|
|
/// <summary>Converts the numeric value of this instance to its equivalent string representation.</summary>
|
|
/// <returns>The string representation of the value of this instance, which consists of a sequence of digits ranging from 0 to 9, without a sign or leading zeroes.</returns>
|
|
/// <filterpriority>1</filterpriority>
|
|
// Token: 0x0600016A RID: 362 RVA: 0x00005E88 File Offset: 0x00004088
|
|
public override string ToString()
|
|
{
|
|
return NumberFormatter.NumberToString((int)this, null);
|
|
}
|
|
|
|
/// <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, which consists of a sequence of digits ranging from 0 to 9, without a sign or leading zeros.</returns>
|
|
/// <param name="provider">An object that supplies culture-specific formatting information. </param>
|
|
/// <filterpriority>1</filterpriority>
|
|
// Token: 0x0600016B RID: 363 RVA: 0x00005E94 File Offset: 0x00004094
|
|
public string ToString(IFormatProvider provider)
|
|
{
|
|
return NumberFormatter.NumberToString((int)this, provider);
|
|
}
|
|
|
|
/// <summary>Converts the numeric value of this instance to its equivalent string representation using the specified format.</summary>
|
|
/// <returns>The string representation of the value of this instance as specified by <paramref name="format" />.</returns>
|
|
/// <param name="format">A numeric format string.</param>
|
|
/// <exception cref="T:System.FormatException">The <paramref name="format" /> parameter is invalid. </exception>
|
|
/// <filterpriority>1</filterpriority>
|
|
// Token: 0x0600016C RID: 364 RVA: 0x00005EA0 File Offset: 0x000040A0
|
|
public string ToString(string format)
|
|
{
|
|
return this.ToString(format, null);
|
|
}
|
|
|
|
/// <summary>Converts the numeric value of this instance to its equivalent string representation using the specified format and culture-specific format information.</summary>
|
|
/// <returns>The string representation of the value of this instance as specified by <paramref name="format" /> and <paramref name="provider" />.</returns>
|
|
/// <param name="format">A numeric format string.</param>
|
|
/// <param name="provider">An object that supplies culture-specific formatting information. </param>
|
|
/// <exception cref="T:System.FormatException">
|
|
/// <paramref name="format" /> is invalid. </exception>
|
|
/// <filterpriority>1</filterpriority>
|
|
// Token: 0x0600016D RID: 365 RVA: 0x00005EAC File Offset: 0x000040AC
|
|
public string ToString(string format, IFormatProvider provider)
|
|
{
|
|
return NumberFormatter.NumberToString(format, this, provider);
|
|
}
|
|
|
|
/// <summary>Returns the <see cref="T:System.TypeCode" /> for value type <see cref="T:System.UInt16" />.</summary>
|
|
/// <returns>The enumerated constant, <see cref="F:System.TypeCode.UInt16" />.</returns>
|
|
/// <filterpriority>2</filterpriority>
|
|
// Token: 0x0600016E RID: 366 RVA: 0x00005EB8 File Offset: 0x000040B8
|
|
public TypeCode GetTypeCode()
|
|
{
|
|
return TypeCode.UInt16;
|
|
}
|
|
|
|
/// <summary>Represents the largest possible value of <see cref="T:System.UInt16" />. This field is constant.</summary>
|
|
/// <filterpriority>1</filterpriority>
|
|
// Token: 0x0400001B RID: 27
|
|
public const ushort MaxValue = 65535;
|
|
|
|
/// <summary>Represents the smallest possible value of <see cref="T:System.UInt16" />. This field is constant.</summary>
|
|
/// <filterpriority>1</filterpriority>
|
|
// Token: 0x0400001C RID: 28
|
|
public const ushort MinValue = 0;
|
|
|
|
// Token: 0x0400001D RID: 29
|
|
internal ushort m_value;
|
|
}
|
|
}
|