Files
Dec2017-Script-Dump/mscorlib/System/Char.cs
T
2026-06-04 11:42:34 +02:00

1003 lines
52 KiB
C#
Raw Blame History

This file contains invisible Unicode characters
This file contains invisible Unicode characters that are indistinguishable to humans but may be processed differently by a computer. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
using System;
using System.Globalization;
using System.Runtime.CompilerServices;
using System.Runtime.InteropServices;
namespace System
{
/// <summary>Represents a Unicode character.</summary>
/// <filterpriority>1</filterpriority>
// Token: 0x0200001B RID: 27
[ComVisible(true)]
[Serializable]
public struct Char : IConvertible, IComparable, IComparable<char>, IEquatable<char>
{
// Token: 0x06000175 RID: 373 RVA: 0x00005EBC File Offset: 0x000040BC
static Char()
{
char.GetDataTablePointers(out char.category_data, out char.numeric_data, out char.numeric_data_values, out char.to_lower_data_low, out char.to_lower_data_high, out char.to_upper_data_low, out char.to_upper_data_high);
}
/// <summary>For a description of this member, see <see cref="M:System.IConvertible.ToType(System.Type,System.IFormatProvider)" />.</summary>
/// <returns>An object of the specified type.</returns>
/// <param name="type">A <see cref="T:System.Type" /> object. </param>
/// <param name="provider">An <see cref="T:System.IFormatProvider" /> object. </param>
/// <exception cref="T:System.ArgumentNullException">
/// <paramref name="type" /> is null.</exception>
/// <exception cref="T:System.InvalidCastException">The value of the current <see cref="T:System.Char" /> object cannot be converted to the type specified by the <paramref name="type" /> parameter. </exception>
// Token: 0x06000176 RID: 374 RVA: 0x00005EF4 File Offset: 0x000040F4
object IConvertible.ToType(Type targetType, IFormatProvider provider)
{
if (targetType == null)
{
throw new ArgumentNullException("targetType");
}
return Convert.ToType(this, targetType, provider, false);
}
/// <summary>Note   This conversion is not supported. Attempting to do so 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">This conversion is not supported.</exception>
// Token: 0x06000177 RID: 375 RVA: 0x00005F24 File Offset: 0x00004124
bool IConvertible.ToBoolean(IFormatProvider provider)
{
throw new InvalidCastException();
}
/// <summary>For a description of this member, see <see cref="M:System.IConvertible.ToByte(System.IFormatProvider)" />.</summary>
/// <returns>The converted value of the current <see cref="T:System.Char" /> object.</returns>
/// <param name="provider">This parameter is ignored.</param>
// Token: 0x06000178 RID: 376 RVA: 0x00005F2C File Offset: 0x0000412C
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 <see cref="T:System.Char" /> object unchanged.</returns>
/// <param name="provider">This parameter is ignored.</param>
// Token: 0x06000179 RID: 377 RVA: 0x00005F38 File Offset: 0x00004138
char IConvertible.ToChar(IFormatProvider provider)
{
return this;
}
/// <summary>Note   This conversion is not supported. Attempting to do so throws an <see cref="T:System.InvalidCastException" />.</summary>
/// <returns>No value is returned.</returns>
/// <param name="provider">This parameter is ignored.</param>
/// <exception cref="T:System.InvalidCastException">This conversion is not supported.</exception>
// Token: 0x0600017A RID: 378 RVA: 0x00005F3C File Offset: 0x0000413C
DateTime IConvertible.ToDateTime(IFormatProvider provider)
{
throw new InvalidCastException();
}
/// <summary>Note   This conversion is not supported. Attempting to do so throws an <see cref="T:System.InvalidCastException" />.</summary>
/// <returns>No value is returned.</returns>
/// <param name="provider">This parameter is ignored.</param>
/// <exception cref="T:System.InvalidCastException">This conversion is not supported.</exception>
// Token: 0x0600017B RID: 379 RVA: 0x00005F44 File Offset: 0x00004144
decimal IConvertible.ToDecimal(IFormatProvider provider)
{
throw new InvalidCastException();
}
/// <summary>Note   This conversion is not supported. Attempting to do so throws an <see cref="T:System.InvalidCastException" />.</summary>
/// <returns>No value is returned.</returns>
/// <param name="provider">This parameter is ignored.</param>
/// <exception cref="T:System.InvalidCastException">This conversion is not supported.</exception>
// Token: 0x0600017C RID: 380 RVA: 0x00005F4C File Offset: 0x0000414C
double IConvertible.ToDouble(IFormatProvider provider)
{
throw new InvalidCastException();
}
/// <summary> For a description of this member, see <see cref="M:System.IConvertible.ToInt16(System.IFormatProvider)" />.</summary>
/// <returns>The converted value of the current <see cref="T:System.Char" /> object.</returns>
/// <param name="provider">This parameter is ignored.</param>
// Token: 0x0600017D RID: 381 RVA: 0x00005F54 File Offset: 0x00004154
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 converted value of the current <see cref="T:System.Char" /> object.</returns>
/// <param name="provider">This parameter is ignored.</param>
// Token: 0x0600017E RID: 382 RVA: 0x00005F60 File Offset: 0x00004160
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 converted value of the current <see cref="T:System.Char" /> object.</returns>
/// <param name="provider">This parameter is ignored.</param>
// Token: 0x0600017F RID: 383 RVA: 0x00005F6C File Offset: 0x0000416C
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 converted value of the current <see cref="T:System.Char" /> object.</returns>
/// <param name="provider">This parameter is ignored.</param>
// Token: 0x06000180 RID: 384 RVA: 0x00005F78 File Offset: 0x00004178
sbyte IConvertible.ToSByte(IFormatProvider provider)
{
return Convert.ToSByte(this);
}
/// <summary>Note   This conversion is not supported. Attempting to do so throws an <see cref="T:System.InvalidCastException" />.</summary>
/// <returns>No value is returned.</returns>
/// <param name="provider">This parameter is ignored.</param>
/// <exception cref="T:System.InvalidCastException">This conversion is not supported.</exception>
// Token: 0x06000181 RID: 385 RVA: 0x00005F84 File Offset: 0x00004184
float IConvertible.ToSingle(IFormatProvider provider)
{
throw new InvalidCastException();
}
/// <summary>For a description of this member, see <see cref="M:System.IConvertible.ToUInt16(System.IFormatProvider)" />.</summary>
/// <returns>The converted value of the current <see cref="T:System.Char" /> object.</returns>
/// <param name="provider">An <see cref="T:System.IFormatProvider" /> object. (Specify null because the <paramref name="provider" /> parameter is ignored.)</param>
// Token: 0x06000182 RID: 386 RVA: 0x00005F8C File Offset: 0x0000418C
ushort IConvertible.ToUInt16(IFormatProvider provider)
{
return Convert.ToUInt16(this);
}
/// <summary>For a description of this member, see <see cref="M:System.IConvertible.ToUInt32(System.IFormatProvider)" />.</summary>
/// <returns>The converted value of the current <see cref="T:System.Char" /> object.</returns>
/// <param name="provider">An <see cref="T:System.IFormatProvider" /> object. (Specify null because the <paramref name="provider" /> parameter is ignored.)</param>
// Token: 0x06000183 RID: 387 RVA: 0x00005F98 File Offset: 0x00004198
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 converted value of the current <see cref="T:System.Char" /> object.</returns>
/// <param name="provider">An <see cref="T:System.IFormatProvider" /> object. (Specify null because the <paramref name="provider" /> parameter is ignored.)</param>
// Token: 0x06000184 RID: 388 RVA: 0x00005FA4 File Offset: 0x000041A4
ulong IConvertible.ToUInt64(IFormatProvider provider)
{
return Convert.ToUInt64(this);
}
// Token: 0x06000185 RID: 389
[MethodImpl(MethodImplOptions.InternalCall)]
private unsafe static extern void GetDataTablePointers(out byte* category_data, out byte* numeric_data, out double* numeric_data_values, out ushort* to_lower_data_low, out ushort* to_lower_data_high, out ushort* to_upper_data_low, out ushort* to_upper_data_high);
/// <summary>Compares this instance to a specified object and indicates whether this instance precedes, follows, or appears in the same position in the sort order as the specified <see cref="T:System.Object" />.</summary>
/// <returns>A signed number indicating the position of this instance in the sort order in relation to the <paramref name="value" /> parameter.Return Value Description Less than zero This instance precedes <paramref name="value" />. Zero This instance has the same position in the sort order as <paramref name="value" />. Greater than zero This instance follows <paramref name="value" />.-or- <paramref name="value" /> is null. </returns>
/// <param name="value">An object to compare this instance to, or null. </param>
/// <exception cref="T:System.ArgumentException">
/// <paramref name="value" /> is not a <see cref="T:System.Char" /> object. </exception>
/// <filterpriority>2</filterpriority>
// Token: 0x06000186 RID: 390 RVA: 0x00005FB0 File Offset: 0x000041B0
public int CompareTo(object value)
{
if (value == null)
{
return 1;
}
if (!(value is char))
{
throw new ArgumentException(Locale.GetText("Value is not a System.Char"));
}
char c = (char)value;
if (this == c)
{
return 0;
}
if (this > c)
{
return 1;
}
return -1;
}
/// <summary>Returns a value that indicates whether this instance is equal to a specified object.</summary>
/// <returns>true if <paramref name="obj" /> is an instance of <see cref="T:System.Char" /> and equals the value of this instance; otherwise, false.</returns>
/// <param name="obj">An object to compare with this instance, or null. </param>
/// <filterpriority>2</filterpriority>
// Token: 0x06000187 RID: 391 RVA: 0x00005FFC File Offset: 0x000041FC
public override bool Equals(object obj)
{
return obj is char && (char)obj == this;
}
/// <summary>Compares this instance to a specified <see cref="T:System.Char" /> object and indicates whether this instance precedes, follows, or appears in the same position in the sort order as the specified <see cref="T:System.Char" /> object.</summary>
/// <returns>A signed number indicating the position of this instance in the sort order in relation to the <paramref name="value" /> parameter.Return Value Description Less than zero This instance precedes <paramref name="value" />. Zero This instance has the same position in the sort order as <paramref name="value" />. Greater than zero This instance follows <paramref name="value" />. </returns>
/// <param name="value">A <see cref="T:System.Char" /> object to compare. </param>
/// <filterpriority>2</filterpriority>
// Token: 0x06000188 RID: 392 RVA: 0x00006018 File Offset: 0x00004218
public int CompareTo(char value)
{
if (this == value)
{
return 0;
}
if (this > value)
{
return 1;
}
return -1;
}
/// <summary>Converts the specified Unicode code point into a UTF-16 encoded string.</summary>
/// <returns>A string consisting of one <see cref="T:System.Char" /> object or a surrogate pair of <see cref="T:System.Char" /> objects equivalent to the code point specified by the <paramref name="utf32" /> parameter.</returns>
/// <param name="utf32">A 21-bit Unicode code point. </param>
/// <exception cref="T:System.ArgumentOutOfRangeException">
/// <paramref name="utf32" /> is not a valid 21-bit Unicode code point ranging from U+0 through U+10FFFF, excluding the surrogate pair range from U+D800 through U+DFFF. </exception>
/// <filterpriority>1</filterpriority>
// Token: 0x06000189 RID: 393 RVA: 0x00006030 File Offset: 0x00004230
public static string ConvertFromUtf32(int utf32)
{
if (utf32 < 0 || utf32 > 1114111)
{
throw new ArgumentOutOfRangeException("utf32", "The argument must be from 0 to 0x10FFFF.");
}
if (55296 <= utf32 && utf32 <= 57343)
{
throw new ArgumentOutOfRangeException("utf32", "The argument must not be in surrogate pair range.");
}
if (utf32 < 65536)
{
return new string((char)utf32, 1);
}
utf32 -= 65536;
return new string(new char[]
{
(char)((utf32 >> 10) + 55296),
(char)(utf32 % 1024 + 56320)
});
}
/// <summary>Converts the value of a UTF-16 encoded surrogate pair into a Unicode code point.</summary>
/// <returns>The 21-bit Unicode code point represented by the <paramref name="highSurrogate" /> and <paramref name="lowSurrogate" /> parameters.</returns>
/// <param name="highSurrogate">A high surrogate code point (that is, a code point ranging from U+D800 through U+DBFF). </param>
/// <param name="lowSurrogate">A low surrogate code point (that is, a code point ranging from U+DC00 through U+DFFF). </param>
/// <exception cref="T:System.ArgumentOutOfRangeException">
/// <paramref name="highSurrogate" /> is not in the range U+D800 through U+DBFF, or <paramref name="lowSurrogate" /> is not in the range U+DC00 through U+DFFF. </exception>
/// <filterpriority>1</filterpriority>
// Token: 0x0600018A RID: 394 RVA: 0x000060CC File Offset: 0x000042CC
public static int ConvertToUtf32(char highSurrogate, char lowSurrogate)
{
if (highSurrogate < '\ud800' || '\udbff' < highSurrogate)
{
throw new ArgumentOutOfRangeException("highSurrogate");
}
if (lowSurrogate < '\udc00' || '\udfff' < lowSurrogate)
{
throw new ArgumentOutOfRangeException("lowSurrogate");
}
return 65536 + (int)((int)(highSurrogate - '\ud800') << 10) + (int)(lowSurrogate - '\udc00');
}
/// <summary>Converts the value of a UTF-16 encoded character or surrogate pair at a specified position in a string into a Unicode code point.</summary>
/// <returns>The 21-bit Unicode code point represented by the character or surrogate pair at the position in the <paramref name="s" /> parameter specified by the <paramref name="index" /> parameter.</returns>
/// <param name="s">A string that contains a character or surrogate pair. </param>
/// <param name="index">The index position of the character or surrogate pair in <paramref name="s" />.</param>
/// <exception cref="T:System.ArgumentNullException">
/// <paramref name="s" /> is null. </exception>
/// <exception cref="T:System.ArgumentOutOfRangeException">
/// <paramref name="index" /> is not a position within <paramref name="s" />. </exception>
/// <exception cref="T:System.ArgumentException">The specified index position contains a surrogate pair, and either the first character in the pair is not a valid high surrogate or the second character in the pair is not a valid low surrogate. </exception>
/// <filterpriority>1</filterpriority>
// Token: 0x0600018B RID: 395 RVA: 0x00006134 File Offset: 0x00004334
public static int ConvertToUtf32(string s, int index)
{
char.CheckParameter(s, index);
if (!char.IsSurrogate(s[index]))
{
return (int)s[index];
}
if (!char.IsHighSurrogate(s[index]) || index == s.Length - 1 || !char.IsLowSurrogate(s[index + 1]))
{
throw new ArgumentException(string.Format("The string contains invalid surrogate pair character at {0}", index));
}
return char.ConvertToUtf32(s[index], s[index + 1]);
}
/// <summary>Returns a value that indicates whether this instance is equal to the specified <see cref="T:System.Char" /> object.</summary>
/// <returns>true if the <paramref name="obj" /> parameter equals the value of this instance; otherwise, false.</returns>
/// <param name="obj">An object to compare to this instance. </param>
/// <filterpriority>2</filterpriority>
// Token: 0x0600018C RID: 396 RVA: 0x000061C0 File Offset: 0x000043C0
public bool Equals(char obj)
{
return this == obj;
}
/// <summary>Indicates whether the two specified <see cref="T:System.Char" /> objects form a surrogate pair.</summary>
/// <returns>true if the numeric value of the <paramref name="highSurrogate" /> parameter ranges from U+D800 through U+DBFF, and the numeric value of the <paramref name="lowSurrogate" /> parameter ranges from U+DC00 through U+DFFF; otherwise, false.</returns>
/// <param name="highSurrogate">A character. </param>
/// <param name="lowSurrogate">A character. </param>
/// <filterpriority>1</filterpriority>
// Token: 0x0600018D RID: 397 RVA: 0x000061C8 File Offset: 0x000043C8
public static bool IsSurrogatePair(char highSurrogate, char lowSurrogate)
{
return '\ud800' <= highSurrogate && highSurrogate <= '\udbff' && '\udc00' <= lowSurrogate && lowSurrogate <= '\udfff';
}
/// <summary>Indicates whether two adjacent <see cref="T:System.Char" /> objects at a specified position in a string form a surrogate pair.</summary>
/// <returns>true if the <paramref name="s" /> parameter and the <paramref name="index" /> parameter specify a pair of adjacent characters, and the numeric value of the character at position <paramref name="index" /> ranges from U+D800 through U+DBFF, and the numeric value of the character at position <paramref name="index" />+1 ranges from U+DC00 through U+DFFF; otherwise, false.</returns>
/// <param name="s">A string. </param>
/// <param name="index">A position within <paramref name="s" />. </param>
/// <exception cref="T:System.ArgumentNullException">
/// <paramref name="s" /> is null. </exception>
/// <exception cref="T:System.ArgumentOutOfRangeException">
/// <paramref name="index" /> is not a position within <paramref name="s" />. </exception>
/// <filterpriority>1</filterpriority>
// Token: 0x0600018E RID: 398 RVA: 0x000061FC File Offset: 0x000043FC
public static bool IsSurrogatePair(string s, int index)
{
char.CheckParameter(s, index);
return index + 1 < s.Length && char.IsSurrogatePair(s[index], s[index + 1]);
}
/// <summary>Returns the hash code for this instance.</summary>
/// <returns>A 32-bit signed integer hash code.</returns>
/// <filterpriority>2</filterpriority>
// Token: 0x0600018F RID: 399 RVA: 0x00006238 File Offset: 0x00004438
public override int GetHashCode()
{
return (int)this;
}
/// <summary>Converts the specified numeric Unicode character to a double-precision floating point number.</summary>
/// <returns>The numeric value of <paramref name="c" /> if that character represents a number; otherwise, -1.0.</returns>
/// <param name="c">The Unicode character to convert. </param>
/// <filterpriority>1</filterpriority>
// Token: 0x06000190 RID: 400 RVA: 0x0000623C File Offset: 0x0000443C
public unsafe static double GetNumericValue(char c)
{
if (c <= '㊉')
{
return char.numeric_data_values[char.numeric_data[c]];
}
if (c >= '' && c <= '')
{
return (double)(c - '');
}
return -1.0;
}
/// <summary>Converts the numeric Unicode character at the specified position in a specified string to a double-precision floating point number.</summary>
/// <returns>The numeric value of the character at position <paramref name="index" /> in <paramref name="s" /> if that character represents a number; otherwise, -1.</returns>
/// <param name="s">A <see cref="T:System.String" />. </param>
/// <param name="index">The character position in <paramref name="s" />. </param>
/// <exception cref="T:System.ArgumentNullException">
/// <paramref name="s" /> is null. </exception>
/// <exception cref="T:System.ArgumentOutOfRangeException">
/// <paramref name="index" /> is less than zero or greater than the last position in <paramref name="s" />. </exception>
/// <filterpriority>1</filterpriority>
// Token: 0x06000191 RID: 401 RVA: 0x00006290 File Offset: 0x00004490
public static double GetNumericValue(string s, int index)
{
char.CheckParameter(s, index);
return char.GetNumericValue(s[index]);
}
/// <summary>Categorizes a specified Unicode character into a group identified by one of the <see cref="T:System.Globalization.UnicodeCategory" /> values.</summary>
/// <returns>A <see cref="T:System.Globalization.UnicodeCategory" /> value that identifies the group that contains <paramref name="c" />.</returns>
/// <param name="c">A Unicode character. </param>
/// <filterpriority>1</filterpriority>
// Token: 0x06000192 RID: 402 RVA: 0x000062A8 File Offset: 0x000044A8
public unsafe static UnicodeCategory GetUnicodeCategory(char c)
{
return (UnicodeCategory)char.category_data[c];
}
/// <summary>Categorizes the character at the specified position in a specified string into a group identified by one of the <see cref="T:System.Globalization.UnicodeCategory" /> values.</summary>
/// <returns>A <see cref="T:System.Globalization.UnicodeCategory" /> enumerated constant that identifies the group that contains the character at position <paramref name="index" /> in <paramref name="s" />.</returns>
/// <param name="s">A <see cref="T:System.String" />. </param>
/// <param name="index">The character position in <paramref name="s" />. </param>
/// <exception cref="T:System.ArgumentNullException">
/// <paramref name="s" /> is null. </exception>
/// <exception cref="T:System.ArgumentOutOfRangeException">
/// <paramref name="index" /> is less than zero or greater than the last position in <paramref name="s" />. </exception>
/// <filterpriority>1</filterpriority>
// Token: 0x06000193 RID: 403 RVA: 0x000062B4 File Offset: 0x000044B4
public static UnicodeCategory GetUnicodeCategory(string s, int index)
{
char.CheckParameter(s, index);
return char.GetUnicodeCategory(s[index]);
}
/// <summary>Indicates whether the specified Unicode character is categorized as a control character.</summary>
/// <returns>true if <paramref name="c" /> is a control character; otherwise, false.</returns>
/// <param name="c">A Unicode character. </param>
/// <filterpriority>1</filterpriority>
// Token: 0x06000194 RID: 404 RVA: 0x000062CC File Offset: 0x000044CC
public unsafe static bool IsControl(char c)
{
return char.category_data[c] == 14;
}
/// <summary>Indicates whether the character at the specified position in a specified string is categorized as a control character.</summary>
/// <returns>true if the character at position <paramref name="index" /> in <paramref name="s" /> is a control character; otherwise, false.</returns>
/// <param name="s">A string. </param>
/// <param name="index">The character position in <paramref name="s" />. </param>
/// <exception cref="T:System.ArgumentNullException">
/// <paramref name="s" /> is null. </exception>
/// <exception cref="T:System.ArgumentOutOfRangeException">
/// <paramref name="index" /> is less than zero or greater than the last position in <paramref name="s" />. </exception>
/// <filterpriority>1</filterpriority>
// Token: 0x06000195 RID: 405 RVA: 0x000062DC File Offset: 0x000044DC
public static bool IsControl(string s, int index)
{
char.CheckParameter(s, index);
return char.IsControl(s[index]);
}
/// <summary>Indicates whether the specified Unicode character is categorized as a decimal digit.</summary>
/// <returns>true if <paramref name="c" /> is a decimal digit; otherwise, false.</returns>
/// <param name="c">A Unicode character. </param>
/// <filterpriority>1</filterpriority>
// Token: 0x06000196 RID: 406 RVA: 0x000062F4 File Offset: 0x000044F4
public unsafe static bool IsDigit(char c)
{
return char.category_data[c] == 8;
}
/// <summary>Indicates whether the character at the specified position in a specified string is categorized as a decimal digit.</summary>
/// <returns>true if the character at position <paramref name="index" /> in <paramref name="s" /> is a decimal digit; otherwise, false.</returns>
/// <param name="s">A <see cref="T:System.String" />. </param>
/// <param name="index">The character position in <paramref name="s" />. </param>
/// <exception cref="T:System.ArgumentNullException">
/// <paramref name="s" /> is null. </exception>
/// <exception cref="T:System.ArgumentOutOfRangeException">
/// <paramref name="index" /> is less than zero or greater than the last position in <paramref name="s" />. </exception>
/// <filterpriority>1</filterpriority>
// Token: 0x06000197 RID: 407 RVA: 0x00006304 File Offset: 0x00004504
public static bool IsDigit(string s, int index)
{
char.CheckParameter(s, index);
return char.IsDigit(s[index]);
}
/// <summary>Indicates whether the specified <see cref="T:System.Char" /> object is a high surrogate.</summary>
/// <returns>true if the numeric value of the <paramref name="c" /> parameter ranges from U+D800 through U+DBFF; otherwise, false.</returns>
/// <param name="c">A character. </param>
/// <filterpriority>1</filterpriority>
// Token: 0x06000198 RID: 408 RVA: 0x0000631C File Offset: 0x0000451C
public static bool IsHighSurrogate(char c)
{
return c >= '\ud800' && c <= '\udbff';
}
/// <summary>Indicates whether the <see cref="T:System.Char" /> object at the specified position in a string is a high surrogate.</summary>
/// <returns>true if the numeric value of the specified character in the <paramref name="s" /> parameter ranges from U+D800 through U+DBFF; otherwise, false.</returns>
/// <param name="s">A string. </param>
/// <param name="index">A position within <paramref name="s" />. </param>
/// <exception cref="T:System.ArgumentNullException">
/// <paramref name="s" /> is null. </exception>
/// <exception cref="T:System.ArgumentOutOfRangeException">
/// <paramref name="index" /> is not a position within <paramref name="s" />. </exception>
/// <filterpriority>1</filterpriority>
// Token: 0x06000199 RID: 409 RVA: 0x00006338 File Offset: 0x00004538
public static bool IsHighSurrogate(string s, int index)
{
char.CheckParameter(s, index);
return char.IsHighSurrogate(s[index]);
}
/// <summary>Indicates whether the specified Unicode character is categorized as a Unicode letter.</summary>
/// <returns>true if <paramref name="c" /> is a letter; otherwise, false.</returns>
/// <param name="c">The Unicode character to evaluate. </param>
/// <filterpriority>1</filterpriority>
// Token: 0x0600019A RID: 410 RVA: 0x00006350 File Offset: 0x00004550
public unsafe static bool IsLetter(char c)
{
return char.category_data[c] <= 4;
}
/// <summary>Indicates whether the character at the specified position in a specified string is categorized as a Unicode letter.</summary>
/// <returns>true if the character at position <paramref name="index" /> in <paramref name="s" /> is a letter; otherwise, false.</returns>
/// <param name="s">A string. </param>
/// <param name="index">The position of the character to evaluate in <paramref name="s" />.</param>
/// <exception cref="T:System.ArgumentNullException">
/// <paramref name="s" /> is null. </exception>
/// <exception cref="T:System.ArgumentOutOfRangeException">
/// <paramref name="index" /> is less than zero or greater than the last position in <paramref name="s" />. </exception>
/// <filterpriority>1</filterpriority>
// Token: 0x0600019B RID: 411 RVA: 0x00006360 File Offset: 0x00004560
public static bool IsLetter(string s, int index)
{
char.CheckParameter(s, index);
return char.IsLetter(s[index]);
}
/// <summary>Indicates whether the specified Unicode character is categorized as a letter or a decimal digit.</summary>
/// <returns>true if <paramref name="c" /> is a letter or a decimal digit; otherwise, false.</returns>
/// <param name="c">A Unicode character. </param>
/// <filterpriority>1</filterpriority>
// Token: 0x0600019C RID: 412 RVA: 0x00006378 File Offset: 0x00004578
public unsafe static bool IsLetterOrDigit(char c)
{
int num = (int)char.category_data[c];
return num <= 4 || num == 8;
}
/// <summary>Indicates whether the character at the specified position in a specified string is categorized as a letter or a decimal digit.</summary>
/// <returns>true if the character at position <paramref name="index" /> in <paramref name="s" /> is a letter or a decimal digit; otherwise, false.</returns>
/// <param name="s">A string. </param>
/// <param name="index">The position of the character to evaluate in <paramref name="s" />.</param>
/// <exception cref="T:System.ArgumentNullException">
/// <paramref name="s" /> is null. </exception>
/// <exception cref="T:System.ArgumentOutOfRangeException">
/// <paramref name="index" /> is less than zero or greater than the last position in <paramref name="s" />. </exception>
/// <filterpriority>1</filterpriority>
// Token: 0x0600019D RID: 413 RVA: 0x0000639C File Offset: 0x0000459C
public static bool IsLetterOrDigit(string s, int index)
{
char.CheckParameter(s, index);
return char.IsLetterOrDigit(s[index]);
}
/// <summary>Indicates whether the specified Unicode character is categorized as a lowercase letter.</summary>
/// <returns>true if <paramref name="c" /> is a lowercase letter; otherwise, false.</returns>
/// <param name="c">A Unicode character. </param>
/// <filterpriority>1</filterpriority>
// Token: 0x0600019E RID: 414 RVA: 0x000063B4 File Offset: 0x000045B4
public unsafe static bool IsLower(char c)
{
return char.category_data[c] == 1;
}
/// <summary>Indicates whether the character at the specified position in a specified string is categorized as a lowercase letter.</summary>
/// <returns>true if the character at position <paramref name="index" /> in <paramref name="s" /> is a lowercase letter; otherwise, false.</returns>
/// <param name="s">A string. </param>
/// <param name="index">The character position in <paramref name="s" />. </param>
/// <exception cref="T:System.ArgumentNullException">
/// <paramref name="s" /> is null. </exception>
/// <exception cref="T:System.ArgumentOutOfRangeException">
/// <paramref name="index" /> is less than zero or greater than the last position in <paramref name="s" />. </exception>
/// <filterpriority>1</filterpriority>
// Token: 0x0600019F RID: 415 RVA: 0x000063C4 File Offset: 0x000045C4
public static bool IsLower(string s, int index)
{
char.CheckParameter(s, index);
return char.IsLower(s[index]);
}
/// <summary>Indicates whether the specified <see cref="T:System.Char" /> object is a low surrogate.</summary>
/// <returns>true if the numeric value of the <paramref name="c" /> parameter ranges from U+DC00 through U+DFFF; otherwise, false.</returns>
/// <param name="c">A character. </param>
/// <filterpriority>1</filterpriority>
// Token: 0x060001A0 RID: 416 RVA: 0x000063DC File Offset: 0x000045DC
public static bool IsLowSurrogate(char c)
{
return c >= '\udc00' && c <= '\udfff';
}
/// <summary>Indicates whether the <see cref="T:System.Char" /> object at the specified position in a string is a low surrogate.</summary>
/// <returns>true if the numeric value of the specified character in the <paramref name="s" /> parameter ranges from U+DC00 through U+DFFF; otherwise, false.</returns>
/// <param name="s">A string. </param>
/// <param name="index">A position within <paramref name="s" />. </param>
/// <exception cref="T:System.ArgumentNullException">
/// <paramref name="s" /> is null. </exception>
/// <exception cref="T:System.ArgumentOutOfRangeException">
/// <paramref name="index" /> is not a position within <paramref name="s" />. </exception>
/// <filterpriority>1</filterpriority>
// Token: 0x060001A1 RID: 417 RVA: 0x000063F8 File Offset: 0x000045F8
public static bool IsLowSurrogate(string s, int index)
{
char.CheckParameter(s, index);
return char.IsLowSurrogate(s[index]);
}
/// <summary>Indicates whether the specified Unicode character is categorized as a number.</summary>
/// <returns>true if <paramref name="c" /> is a number; otherwise, false.</returns>
/// <param name="c">The Unicode character to evaluate.</param>
/// <filterpriority>1</filterpriority>
// Token: 0x060001A2 RID: 418 RVA: 0x00006410 File Offset: 0x00004610
public unsafe static bool IsNumber(char c)
{
int num = (int)char.category_data[c];
return num >= 8 && num <= 10;
}
/// <summary>Indicates whether the character at the specified position in a specified string is categorized as a number.</summary>
/// <returns>true if the character at position <paramref name="index" /> in <paramref name="s" /> is a number; otherwise, false.</returns>
/// <param name="s">A string. </param>
/// <param name="index">The zero-based position of the character to evaluate in <paramref name="s" />. </param>
/// <exception cref="T:System.ArgumentNullException">
/// <paramref name="s" /> is null. </exception>
/// <exception cref="T:System.ArgumentOutOfRangeException">
/// <paramref name="index" /> is less than zero or greater than the last position in <paramref name="s" />. </exception>
/// <filterpriority>1</filterpriority>
// Token: 0x060001A3 RID: 419 RVA: 0x00006438 File Offset: 0x00004638
public static bool IsNumber(string s, int index)
{
char.CheckParameter(s, index);
return char.IsNumber(s[index]);
}
/// <summary>Indicates whether the specified Unicode character is categorized as a punctuation mark.</summary>
/// <returns>true if <paramref name="c" /> is a punctuation mark; otherwise, false.</returns>
/// <param name="c">A Unicode character. </param>
/// <filterpriority>1</filterpriority>
// Token: 0x060001A4 RID: 420 RVA: 0x00006450 File Offset: 0x00004650
public unsafe static bool IsPunctuation(char c)
{
int num = (int)char.category_data[c];
return num >= 18 && num <= 24;
}
/// <summary>Indicates whether the character at the specified position in a specified string is categorized as a punctuation mark.</summary>
/// <returns>true if the character at position <paramref name="index" /> in <paramref name="s" /> is a punctuation mark; otherwise, false.</returns>
/// <param name="s">A string. </param>
/// <param name="index">The character position in <paramref name="s" />. </param>
/// <exception cref="T:System.ArgumentNullException">
/// <paramref name="s" /> is null. </exception>
/// <exception cref="T:System.ArgumentOutOfRangeException">
/// <paramref name="index" /> is less than zero or greater than the last position in <paramref name="s" />. </exception>
/// <filterpriority>1</filterpriority>
// Token: 0x060001A5 RID: 421 RVA: 0x0000647C File Offset: 0x0000467C
public static bool IsPunctuation(string s, int index)
{
char.CheckParameter(s, index);
return char.IsPunctuation(s[index]);
}
/// <summary>Indicates whether the specified Unicode character is categorized as a separator character.</summary>
/// <returns>true if <paramref name="c" /> is a separator character; otherwise, false.</returns>
/// <param name="c">A Unicode character. </param>
/// <filterpriority>1</filterpriority>
// Token: 0x060001A6 RID: 422 RVA: 0x00006494 File Offset: 0x00004694
public unsafe static bool IsSeparator(char c)
{
int num = (int)char.category_data[c];
return num >= 11 && num <= 13;
}
/// <summary>Indicates whether the character at the specified position in a specified string is categorized as a separator character.</summary>
/// <returns>true if the character at position <paramref name="index" /> in <paramref name="s" /> is a separator character; otherwise, false.</returns>
/// <param name="s">A string. </param>
/// <param name="index">The character position in <paramref name="s" />. </param>
/// <exception cref="T:System.ArgumentNullException">
/// <paramref name="s" /> is null. </exception>
/// <exception cref="T:System.ArgumentOutOfRangeException">
/// <paramref name="index" /> is less than zero or greater than the last position in <paramref name="s" />. </exception>
/// <filterpriority>1</filterpriority>
// Token: 0x060001A7 RID: 423 RVA: 0x000064C0 File Offset: 0x000046C0
public static bool IsSeparator(string s, int index)
{
char.CheckParameter(s, index);
return char.IsSeparator(s[index]);
}
/// <summary>Indicates whether the specified character has a surrogate code point.</summary>
/// <returns>true if <paramref name="c" /> is either a high surrogate or a low surrogate; otherwise, false.</returns>
/// <param name="c">A Unicode character. </param>
/// <filterpriority>1</filterpriority>
// Token: 0x060001A8 RID: 424 RVA: 0x000064D8 File Offset: 0x000046D8
public unsafe static bool IsSurrogate(char c)
{
return char.category_data[c] == 16;
}
/// <summary>Indicates whether the character at the specified position in a specified string has a surrogate code point.</summary>
/// <returns>true if the character at position <paramref name="index" /> in <paramref name="s" /> is a either a high surrogate or a low surrogate; otherwise, false.</returns>
/// <param name="s">A string. </param>
/// <param name="index">The character position in <paramref name="s" />. </param>
/// <exception cref="T:System.ArgumentNullException">
/// <paramref name="s" /> is null. </exception>
/// <exception cref="T:System.ArgumentOutOfRangeException">
/// <paramref name="index" /> is less than zero or greater than the last position in <paramref name="s" />. </exception>
/// <filterpriority>1</filterpriority>
// Token: 0x060001A9 RID: 425 RVA: 0x000064E8 File Offset: 0x000046E8
public static bool IsSurrogate(string s, int index)
{
char.CheckParameter(s, index);
return char.IsSurrogate(s[index]);
}
/// <summary>Indicates whether the specified Unicode character is categorized as a symbol character.</summary>
/// <returns>true if <paramref name="c" /> is a symbol character; otherwise, false.</returns>
/// <param name="c">A Unicode character. </param>
/// <filterpriority>1</filterpriority>
// Token: 0x060001AA RID: 426 RVA: 0x00006500 File Offset: 0x00004700
public unsafe static bool IsSymbol(char c)
{
int num = (int)char.category_data[c];
return num >= 25 && num <= 28;
}
/// <summary>Indicates whether the character at the specified position in a specified string is categorized as a symbol character.</summary>
/// <returns>true if the character at position <paramref name="index" /> in <paramref name="s" /> is a symbol character; otherwise, false.</returns>
/// <param name="s">A string. </param>
/// <param name="index">The character position in <paramref name="s" />. </param>
/// <exception cref="T:System.ArgumentNullException">
/// <paramref name="s" /> is null. </exception>
/// <exception cref="T:System.ArgumentOutOfRangeException">
/// <paramref name="index" /> is less than zero or greater than the last position in <paramref name="s" />. </exception>
/// <filterpriority>1</filterpriority>
// Token: 0x060001AB RID: 427 RVA: 0x0000652C File Offset: 0x0000472C
public static bool IsSymbol(string s, int index)
{
char.CheckParameter(s, index);
return char.IsSymbol(s[index]);
}
/// <summary>Indicates whether the specified Unicode character is categorized as an uppercase letter.</summary>
/// <returns>true if <paramref name="c" /> is an uppercase letter; otherwise, false.</returns>
/// <param name="c">A Unicode character. </param>
/// <filterpriority>1</filterpriority>
// Token: 0x060001AC RID: 428 RVA: 0x00006544 File Offset: 0x00004744
public unsafe static bool IsUpper(char c)
{
return char.category_data[c] == 0;
}
/// <summary>Indicates whether the character at the specified position in a specified string is categorized as an uppercase letter.</summary>
/// <returns>true if the character at position <paramref name="index" /> in <paramref name="s" /> is an uppercase letter; otherwise, false.</returns>
/// <param name="s">A string. </param>
/// <param name="index">The character position in <paramref name="s" />. </param>
/// <exception cref="T:System.ArgumentNullException">
/// <paramref name="s" /> is null. </exception>
/// <exception cref="T:System.ArgumentOutOfRangeException">
/// <paramref name="index" /> is less than zero or greater than the last position in <paramref name="s" />. </exception>
/// <filterpriority>1</filterpriority>
// Token: 0x060001AD RID: 429 RVA: 0x00006554 File Offset: 0x00004754
public static bool IsUpper(string s, int index)
{
char.CheckParameter(s, index);
return char.IsUpper(s[index]);
}
/// <summary>Indicates whether the specified Unicode character is categorized as white space.</summary>
/// <returns>true if <paramref name="c" /> is white space; otherwise, false.</returns>
/// <param name="c">A Unicode character. </param>
/// <filterpriority>1</filterpriority>
// Token: 0x060001AE RID: 430 RVA: 0x0000656C File Offset: 0x0000476C
public unsafe static bool IsWhiteSpace(char c)
{
int num = (int)char.category_data[c];
return num > 10 && (num <= 13 || (c >= '\t' && c <= '\r') || c == '\u0085' || c == '\u205f');
}
/// <summary>Indicates whether the character at the specified position in a specified string is categorized as white space.</summary>
/// <returns>true if the character at position <paramref name="index" /> in <paramref name="s" /> is white space; otherwise, false.</returns>
/// <param name="s">A string. </param>
/// <param name="index">The character position in <paramref name="s" />. </param>
/// <exception cref="T:System.ArgumentNullException">
/// <paramref name="s" /> is null. </exception>
/// <exception cref="T:System.ArgumentOutOfRangeException">
/// <paramref name="index" /> is less than zero or greater than the last position in <paramref name="s" />. </exception>
/// <filterpriority>1</filterpriority>
// Token: 0x060001AF RID: 431 RVA: 0x000065BC File Offset: 0x000047BC
public static bool IsWhiteSpace(string s, int index)
{
char.CheckParameter(s, index);
return char.IsWhiteSpace(s[index]);
}
// Token: 0x060001B0 RID: 432 RVA: 0x000065D4 File Offset: 0x000047D4
private static void CheckParameter(string s, int index)
{
if (s == null)
{
throw new ArgumentNullException("s");
}
if (index < 0 || index >= s.Length)
{
throw new ArgumentOutOfRangeException(Locale.GetText("The value of index is less than zero, or greater than or equal to the length of s."));
}
}
/// <summary>Converts the value of the specified string to its equivalent Unicode character. A return code indicates whether the conversion succeeded or failed.</summary>
/// <returns>true if the <paramref name="s" /> parameter was converted successfully; otherwise, false.</returns>
/// <param name="s">A string containing a single character or null. </param>
/// <param name="result">When this method returns, contains a Unicode character equivalent to the sole character in <paramref name="s" />, if the conversion succeeded, or an undefined value if the conversion failed. The conversion fails if the <paramref name="s" /> parameter is null or the length of <paramref name="s" /> is not 1. This parameter is passed uninitialized. </param>
/// <filterpriority>1</filterpriority>
// Token: 0x060001B1 RID: 433 RVA: 0x00006618 File Offset: 0x00004818
public static bool TryParse(string s, out char result)
{
if (s == null || s.Length != 1)
{
result = '\0';
return false;
}
result = s[0];
return true;
}
/// <summary>Converts the value of the specified string to its equivalent Unicode character.</summary>
/// <returns>A Unicode character equivalent to the sole character in <paramref name="s" />.</returns>
/// <param name="s">A string containing a single character or null. </param>
/// <exception cref="T:System.ArgumentNullException">
/// <paramref name="s" /> is null. </exception>
/// <exception cref="T:System.FormatException">The length of <paramref name="s" /> is not 1. </exception>
/// <filterpriority>1</filterpriority>
// Token: 0x060001B2 RID: 434 RVA: 0x0000663C File Offset: 0x0000483C
public static char Parse(string s)
{
if (s == null)
{
throw new ArgumentNullException("s");
}
if (s.Length != 1)
{
throw new FormatException(Locale.GetText("s contains more than one character."));
}
return s[0];
}
/// <summary>Converts the value of a Unicode character to its lowercase equivalent.</summary>
/// <returns>The lowercase equivalent of <paramref name="c" />, or the unchanged value of <paramref name="c" />, if <paramref name="c" /> is already lowercase or not alphabetic.</returns>
/// <param name="c">A Unicode character. </param>
/// <filterpriority>1</filterpriority>
// Token: 0x060001B3 RID: 435 RVA: 0x00006680 File Offset: 0x00004880
public static char ToLower(char c)
{
return CultureInfo.CurrentCulture.TextInfo.ToLower(c);
}
/// <summary>Converts the value of a Unicode character to its lowercase equivalent using the casing rules of the invariant culture.</summary>
/// <returns>The lowercase equivalent of the <paramref name="c" /> parameter, or the unchanged value of <paramref name="c" />, if <paramref name="c" /> is already lowercase or not alphabetic.</returns>
/// <param name="c">A Unicode character. </param>
/// <filterpriority>1</filterpriority>
// Token: 0x060001B4 RID: 436 RVA: 0x00006694 File Offset: 0x00004894
public unsafe static char ToLowerInvariant(char c)
{
if (c <= 'Ⓩ')
{
return (char)char.to_lower_data_low[c];
}
if (c >= '')
{
return (char)char.to_lower_data_high[c - ''];
}
return c;
}
/// <summary>Converts the value of a specified Unicode character to its lowercase equivalent using specified culture-specific formatting information.</summary>
/// <returns>The lowercase equivalent of <paramref name="c" />, modified according to <paramref name="culture" />, or the unchanged value of <paramref name="c" />, if <paramref name="c" /> is already lowercase or not alphabetic.</returns>
/// <param name="c">A Unicode character. </param>
/// <param name="culture">An object that supplies culture-specific casing rules. </param>
/// <exception cref="T:System.ArgumentNullException">
/// <paramref name="culture" /> is null. </exception>
/// <filterpriority>1</filterpriority>
// Token: 0x060001B5 RID: 437 RVA: 0x000066CC File Offset: 0x000048CC
public static char ToLower(char c, CultureInfo culture)
{
if (culture == null)
{
throw new ArgumentNullException("culture");
}
if (culture.LCID == 127)
{
return char.ToLowerInvariant(c);
}
return culture.TextInfo.ToLower(c);
}
/// <summary>Converts the value of a Unicode character to its uppercase equivalent.</summary>
/// <returns>The uppercase equivalent of <paramref name="c" />, or the unchanged value of <paramref name="c" /> if <paramref name="c" /> is already uppercase, has no uppercase equivalent, or is not alphabetic.</returns>
/// <param name="c">A Unicode character. </param>
/// <filterpriority>1</filterpriority>
// Token: 0x060001B6 RID: 438 RVA: 0x0000670C File Offset: 0x0000490C
public static char ToUpper(char c)
{
return CultureInfo.CurrentCulture.TextInfo.ToUpper(c);
}
/// <summary>Converts the value of a Unicode character to its uppercase equivalent using the casing rules of the invariant culture.</summary>
/// <returns>The uppercase equivalent of the <paramref name="c" /> parameter, or the unchanged value of <paramref name="c" />, if <paramref name="c" /> is already uppercase or not alphabetic.</returns>
/// <param name="c">A Unicode character. </param>
/// <filterpriority>1</filterpriority>
// Token: 0x060001B7 RID: 439 RVA: 0x00006720 File Offset: 0x00004920
public unsafe static char ToUpperInvariant(char c)
{
if (c <= 'ⓩ')
{
return (char)char.to_upper_data_low[c];
}
if (c >= '')
{
return (char)char.to_upper_data_high[c - ''];
}
return c;
}
/// <summary>Converts the value of a specified Unicode character to its uppercase equivalent using specified culture-specific formatting information.</summary>
/// <returns>The uppercase equivalent of <paramref name="c" />, modified according to <paramref name="culture" />, or the unchanged value of <paramref name="c" /> if <paramref name="c" /> is already uppercase, has no uppercase equivalent, or is not alphabetic.</returns>
/// <param name="c">The Unicode character to convert. </param>
/// <param name="culture">A <see cref="T:System.Globalization.CultureInfo" /> object that supplies culture-specific casing rules.</param>
/// <exception cref="T:System.ArgumentNullException">
/// <paramref name="culture" /> is null. </exception>
/// <filterpriority>1</filterpriority>
// Token: 0x060001B8 RID: 440 RVA: 0x00006758 File Offset: 0x00004958
public static char ToUpper(char c, CultureInfo culture)
{
if (culture == null)
{
throw new ArgumentNullException("culture");
}
if (culture.LCID == 127)
{
return char.ToUpperInvariant(c);
}
return culture.TextInfo.ToUpper(c);
}
/// <summary>Converts the value of this instance to its equivalent string representation.</summary>
/// <returns>The string representation of the value of this instance.</returns>
/// <filterpriority>1</filterpriority>
// Token: 0x060001B9 RID: 441 RVA: 0x00006798 File Offset: 0x00004998
public override string ToString()
{
return new string(this, 1);
}
/// <summary>Converts the specified Unicode character to its equivalent string representation.</summary>
/// <returns>The string representation of the value of <paramref name="c" />.</returns>
/// <param name="c">A Unicode character. </param>
/// <filterpriority>1</filterpriority>
// Token: 0x060001BA RID: 442 RVA: 0x000067A4 File Offset: 0x000049A4
public static string ToString(char c)
{
return new string(c, 1);
}
/// <summary>Converts the 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">(Reserved) An <see cref="T:System.IFormatProvider" /> that supplies culture-specific formatting information. </param>
/// <filterpriority>1</filterpriority>
// Token: 0x060001BB RID: 443 RVA: 0x000067B0 File Offset: 0x000049B0
public string ToString(IFormatProvider provider)
{
return new string(this, 1);
}
/// <summary>Returns the <see cref="T:System.TypeCode" /> for value type <see cref="T:System.Char" />.</summary>
/// <returns>The enumerated constant, <see cref="F:System.TypeCode.Char" />.</returns>
/// <filterpriority>2</filterpriority>
// Token: 0x060001BC RID: 444 RVA: 0x000067BC File Offset: 0x000049BC
public TypeCode GetTypeCode()
{
return TypeCode.Char;
}
/// <summary>Represents the largest possible value of a <see cref="T:System.Char" />. This field is constant.</summary>
/// <filterpriority>1</filterpriority>
// Token: 0x0400001E RID: 30
public const char MaxValue = '\uffff';
/// <summary>Represents the smallest possible value of a <see cref="T:System.Char" />. This field is constant.</summary>
/// <filterpriority>1</filterpriority>
// Token: 0x0400001F RID: 31
public const char MinValue = '\0';
// Token: 0x04000020 RID: 32
internal char m_value;
// Token: 0x04000021 RID: 33
private unsafe static readonly byte* category_data;
// Token: 0x04000022 RID: 34
private unsafe static readonly byte* numeric_data;
// Token: 0x04000023 RID: 35
private unsafe static readonly double* numeric_data_values;
// Token: 0x04000024 RID: 36
private unsafe static readonly ushort* to_lower_data_low;
// Token: 0x04000025 RID: 37
private unsafe static readonly ushort* to_lower_data_high;
// Token: 0x04000026 RID: 38
private unsafe static readonly ushort* to_upper_data_low;
// Token: 0x04000027 RID: 39
private unsafe static readonly ushort* to_upper_data_high;
}
}