404 lines
17 KiB
C#
404 lines
17 KiB
C#
using System;
|
|
using System.Globalization;
|
|
using System.Text;
|
|
using System.Xml;
|
|
using System.Xml.Schema;
|
|
using System.Xml.Serialization;
|
|
using Cpp2IlInjected;
|
|
|
|
namespace System.Data.SqlTypes
|
|
{
|
|
/// <summary>Represents a variable-length stream of characters to be stored in or retrieved from the database. <see cref="T:System.Data.SqlTypes.SqlString" /> has a different underlying data structure from its corresponding .NET Framework <see cref="T:System.String" /> data type.</summary>
|
|
// Token: 0x020000AF RID: 175
|
|
[Token(Token = "0x20000AF")]
|
|
[XmlSchemaProvider("GetXsdType")]
|
|
[Serializable]
|
|
public struct SqlString : INullable, IComparable, IXmlSerializable
|
|
{
|
|
// Token: 0x06000A9C RID: 2716 RVA: 0x0000206A File Offset: 0x0000026A
|
|
[Token(Token = "0x6000A9C")]
|
|
[Address(RVA = "0xBDAD90", Offset = "0xBD9D90", VA = "0x180BDAD90")]
|
|
private SqlString(bool fNull)
|
|
{
|
|
}
|
|
|
|
/// <summary>Initializes a new instance of the <see cref="T:System.Data.SqlTypes.SqlString" /> structure using the specified string, locale id, and compare option values.</summary>
|
|
/// <param name="data">The string to store.</param>
|
|
/// <param name="lcid">Specifies the geographical locale and language for the new <see cref="T:System.Data.SqlTypes.SqlString" /> structure.</param>
|
|
/// <param name="compareOptions">Specifies the compare options for the new <see cref="T:System.Data.SqlTypes.SqlString" /> structure.</param>
|
|
// Token: 0x06000A9D RID: 2717 RVA: 0x0000206A File Offset: 0x0000026A
|
|
[Token(Token = "0x6000A9D")]
|
|
[Address(RVA = "0xBDADB0", Offset = "0xBD9DB0", VA = "0x180BDADB0")]
|
|
public SqlString(string data, int lcid, SqlCompareOptions compareOptions)
|
|
{
|
|
}
|
|
|
|
/// <summary>Initializes a new instance of the <see cref="T:System.Data.SqlTypes.SqlString" /> structure using the specified string.</summary>
|
|
/// <param name="data">The string to store.</param>
|
|
// Token: 0x06000A9E RID: 2718 RVA: 0x0000206A File Offset: 0x0000026A
|
|
[Token(Token = "0x6000A9E")]
|
|
[Address(RVA = "0xBDACC0", Offset = "0xBD9CC0", VA = "0x180BDACC0")]
|
|
public SqlString(string data)
|
|
{
|
|
}
|
|
|
|
// Token: 0x06000A9F RID: 2719 RVA: 0x0000206A File Offset: 0x0000026A
|
|
[Token(Token = "0x6000A9F")]
|
|
[Address(RVA = "0xBDAE50", Offset = "0xBD9E50", VA = "0x180BDAE50")]
|
|
private SqlString(int lcid, SqlCompareOptions compareOptions, string data, CompareInfo cmpInfo)
|
|
{
|
|
}
|
|
|
|
/// <summary>Indicates whether this <see cref="T:System.Data.SqlTypes.SqlString" /> structure is null.</summary>
|
|
/// <returns>
|
|
/// <see langword="true" /> if <see cref="P:System.Data.SqlTypes.SqlString.Value" /> is <see cref="F:System.Data.SqlTypes.SqlString.Null" />. Otherwise, <see langword="false" />.</returns>
|
|
// Token: 0x17000195 RID: 405
|
|
// (get) Token: 0x06000AA0 RID: 2720 RVA: 0x000069EC File Offset: 0x00004BEC
|
|
[Token(Token = "0x17000195")]
|
|
public bool IsNull
|
|
{
|
|
[Token(Token = "0x6000AA0")]
|
|
[Address(RVA = "0xBDAEF0", Offset = "0xBD9EF0", VA = "0x180BDAEF0", Slot = "4")]
|
|
get
|
|
{
|
|
return default(bool);
|
|
}
|
|
}
|
|
|
|
/// <summary>Gets the string that is stored in this <see cref="T:System.Data.SqlTypes.SqlString" /> structure. This property is read-only.</summary>
|
|
/// <returns>The string that is stored.</returns>
|
|
/// <exception cref="T:System.Data.SqlTypes.SqlNullValueException">The value of the string is <see cref="F:System.Data.SqlTypes.SqlString.Null" />.</exception>
|
|
// Token: 0x17000196 RID: 406
|
|
// (get) Token: 0x06000AA1 RID: 2721 RVA: 0x00002050 File Offset: 0x00000250
|
|
[Token(Token = "0x17000196")]
|
|
public string Value
|
|
{
|
|
[Token(Token = "0x6000AA1")]
|
|
[Address(RVA = "0xBDAF00", Offset = "0xBD9F00", VA = "0x180BDAF00")]
|
|
get
|
|
{
|
|
return null;
|
|
}
|
|
}
|
|
|
|
// Token: 0x06000AA2 RID: 2722 RVA: 0x0000206A File Offset: 0x0000026A
|
|
[Token(Token = "0x6000AA2")]
|
|
[Address(RVA = "0xBDA430", Offset = "0xBD9430", VA = "0x180BDA430")]
|
|
private void SetCompareInfo()
|
|
{
|
|
}
|
|
|
|
/// <summary>Converts the <see cref="T:System.String" /> parameter to a <see cref="T:System.Data.SqlTypes.SqlString" />.</summary>
|
|
/// <param name="x">The <see cref="T:System.String" /> to be converted.</param>
|
|
/// <returns>A <see cref="T:System.Data.SqlTypes.SqlString" /> that contains the value of the specified <see langword="String" />.</returns>
|
|
// Token: 0x06000AA3 RID: 2723 RVA: 0x00006A04 File Offset: 0x00004C04
|
|
[Token(Token = "0x6000AA3")]
|
|
[Address(RVA = "0xBDB270", Offset = "0xBDA270", VA = "0x180BDB270")]
|
|
public static implicit operator SqlString(string x)
|
|
{
|
|
return default(SqlString);
|
|
}
|
|
|
|
/// <summary>Converts a <see cref="T:System.Data.SqlTypes.SqlString" /> object to a <see cref="T:System.String" />.</summary>
|
|
/// <returns>A <see cref="T:System.String" /> with the same value as this <see cref="T:System.Data.SqlTypes.SqlString" /> structure.</returns>
|
|
// Token: 0x06000AA4 RID: 2724 RVA: 0x00002050 File Offset: 0x00000250
|
|
[Token(Token = "0x6000AA4")]
|
|
[Address(RVA = "0xBDAA90", Offset = "0xBD9A90", VA = "0x180BDAA90", Slot = "3")]
|
|
public override string ToString()
|
|
{
|
|
return null;
|
|
}
|
|
|
|
/// <summary>Concatenates the two specified <see cref="T:System.Data.SqlTypes.SqlString" /> structures.</summary>
|
|
/// <param name="x">A <see cref="T:System.Data.SqlTypes.SqlString" />.</param>
|
|
/// <param name="y">A <see cref="T:System.Data.SqlTypes.SqlString" />.</param>
|
|
/// <returns>A <see cref="T:System.Data.SqlTypes.SqlString" /> that contains the newly concatenated value representing the contents of the two <see cref="T:System.Data.SqlTypes.SqlString" /> parameters.</returns>
|
|
// Token: 0x06000AA5 RID: 2725 RVA: 0x00006A1C File Offset: 0x00004C1C
|
|
[Token(Token = "0x6000AA5")]
|
|
[Address(RVA = "0xBDAF60", Offset = "0xBD9F60", VA = "0x180BDAF60")]
|
|
public static SqlString operator +(SqlString x, SqlString y)
|
|
{
|
|
return default(SqlString);
|
|
}
|
|
|
|
// Token: 0x06000AA6 RID: 2726 RVA: 0x00006A34 File Offset: 0x00004C34
|
|
[Token(Token = "0x6000AA6")]
|
|
[Address(RVA = "0xBDA4C0", Offset = "0xBD94C0", VA = "0x180BDA4C0")]
|
|
private static int StringCompare(SqlString x, SqlString y)
|
|
{
|
|
return 0;
|
|
}
|
|
|
|
// Token: 0x06000AA7 RID: 2727 RVA: 0x00006A4C File Offset: 0x00004C4C
|
|
[Token(Token = "0x6000AA7")]
|
|
[Address(RVA = "0xBD9D70", Offset = "0xBD8D70", VA = "0x180BD9D70")]
|
|
private static SqlBoolean Compare(SqlString x, SqlString y, EComparison ecExpectedResult)
|
|
{
|
|
return default(SqlBoolean);
|
|
}
|
|
|
|
/// <summary>Performs a logical comparison of the two <see cref="T:System.Data.SqlTypes.SqlString" /> operands to determine whether they are equal.</summary>
|
|
/// <param name="x">A <see cref="T:System.Data.SqlTypes.SqlString" />.</param>
|
|
/// <param name="y">A <see cref="T:System.Data.SqlTypes.SqlString" />.</param>
|
|
/// <returns>A <see cref="T:System.Data.SqlTypes.SqlBoolean" /> that is <see cref="F:System.Data.SqlTypes.SqlBoolean.True" /> if the two instances are equal or <see cref="F:System.Data.SqlTypes.SqlBoolean.False" /> if the two instances are not equal. If either instance of <see cref="T:System.Data.SqlTypes.SqlString" /> is null, the <see cref="P:System.Data.SqlTypes.SqlBoolean.Value" /> of the <see cref="T:System.Data.SqlTypes.SqlBoolean" /> will be <see cref="F:System.Data.SqlTypes.SqlBoolean.Null" />.</returns>
|
|
// Token: 0x06000AA8 RID: 2728 RVA: 0x00006A64 File Offset: 0x00004C64
|
|
[Token(Token = "0x6000AA8")]
|
|
[Address(RVA = "0xBDB110", Offset = "0xBDA110", VA = "0x180BDB110")]
|
|
public static SqlBoolean operator ==(SqlString x, SqlString y)
|
|
{
|
|
return default(SqlBoolean);
|
|
}
|
|
|
|
// Token: 0x06000AA9 RID: 2729 RVA: 0x0000206A File Offset: 0x0000026A
|
|
[Token(Token = "0x6000AA9")]
|
|
[Address(RVA = "0xBDAAB0", Offset = "0xBD9AB0", VA = "0x180BDAAB0")]
|
|
private static void ValidateSqlCompareOptions(SqlCompareOptions compareOptions)
|
|
{
|
|
}
|
|
|
|
/// <summary>Gets the <see cref="T:System.Globalization.CompareOptions" /> enumeration equilvalent of the specified <see cref="T:System.Data.SqlTypes.SqlCompareOptions" /> value.</summary>
|
|
/// <param name="compareOptions">A <see cref="T:System.Data.SqlTypes.SqlCompareOptions" /> value that describes the comparison options for this <see cref="T:System.Data.SqlTypes.SqlString" /> structure.</param>
|
|
/// <returns>A <see langword="CompareOptions" /> value that corresponds to the <see langword="SqlCompareOptions" /> for this <see cref="T:System.Data.SqlTypes.SqlString" /> structure.</returns>
|
|
// Token: 0x06000AAA RID: 2730 RVA: 0x00006A7C File Offset: 0x00004C7C
|
|
[Token(Token = "0x6000AAA")]
|
|
[Address(RVA = "0xBD9AB0", Offset = "0xBD8AB0", VA = "0x180BD9AB0")]
|
|
public static CompareOptions CompareOptionsFromSqlCompareOptions(SqlCompareOptions compareOptions)
|
|
{
|
|
return CompareOptions.None;
|
|
}
|
|
|
|
// Token: 0x06000AAB RID: 2731 RVA: 0x00006A94 File Offset: 0x00004C94
|
|
[Token(Token = "0x6000AAB")]
|
|
[Address(RVA = "0xBDA160", Offset = "0xBD9160", VA = "0x180BDA160")]
|
|
private bool FBinarySort()
|
|
{
|
|
return default(bool);
|
|
}
|
|
|
|
// Token: 0x06000AAC RID: 2732 RVA: 0x00006AAC File Offset: 0x00004CAC
|
|
[Token(Token = "0x6000AAC")]
|
|
[Address(RVA = "0xBD9840", Offset = "0xBD8840", VA = "0x180BD9840")]
|
|
private static int CompareBinary(SqlString x, SqlString y)
|
|
{
|
|
return 0;
|
|
}
|
|
|
|
// Token: 0x06000AAD RID: 2733 RVA: 0x00006AC4 File Offset: 0x00004CC4
|
|
[Token(Token = "0x6000AAD")]
|
|
[Address(RVA = "0xBD96D0", Offset = "0xBD86D0", VA = "0x180BD96D0")]
|
|
private static int CompareBinary2(SqlString x, SqlString y)
|
|
{
|
|
return 0;
|
|
}
|
|
|
|
/// <summary>Compares this <see cref="T:System.Data.SqlTypes.SqlString" /> object to the supplied <see cref="T:System.Object" /> and returns an indication of their relative values.</summary>
|
|
/// <param name="value">The <see cref="T:System.Object" /> to be compared.</param>
|
|
/// <returns>A signed number that indicates the relative values of the instance and the object.
|
|
/// Return Value
|
|
///
|
|
/// Condition
|
|
///
|
|
/// Less than zero
|
|
///
|
|
/// This instance is less than the object.
|
|
///
|
|
/// Zero
|
|
///
|
|
/// This instance is the same as the object.
|
|
///
|
|
/// Greater than zero
|
|
///
|
|
/// This instance is greater than the object
|
|
///
|
|
/// -or-
|
|
///
|
|
/// The object is a null reference (<see langword="Nothing" /> in Visual Basic)</returns>
|
|
// Token: 0x06000AAE RID: 2734 RVA: 0x00006ADC File Offset: 0x00004CDC
|
|
[Token(Token = "0x6000AAE")]
|
|
[Address(RVA = "0xBD9B70", Offset = "0xBD8B70", VA = "0x180BD9B70", Slot = "5")]
|
|
public int CompareTo(object value)
|
|
{
|
|
return 0;
|
|
}
|
|
|
|
/// <summary>Compares this <see cref="T:System.Data.SqlTypes.SqlString" /> instance to the supplied <see cref="T:System.Data.SqlTypes.SqlString" /> and returns an indication of their relative values.</summary>
|
|
/// <param name="value">The <see cref="T:System.Data.SqlTypes.SqlString" /> to be compared.</param>
|
|
/// <returns>A signed number that indicates the relative values of the instance and the object.
|
|
/// Return value
|
|
///
|
|
/// Condition
|
|
///
|
|
/// Less than zero
|
|
///
|
|
/// This instance is less than the object.
|
|
///
|
|
/// Zero
|
|
///
|
|
/// This instance is the same as the object.
|
|
///
|
|
/// Greater than zero
|
|
///
|
|
/// This instance is greater than the object
|
|
///
|
|
/// -or-
|
|
///
|
|
/// The object is a null reference (<see langword="Nothing" /> in Visual Basic).</returns>
|
|
// Token: 0x06000AAF RID: 2735 RVA: 0x00006AF4 File Offset: 0x00004CF4
|
|
[Token(Token = "0x6000AAF")]
|
|
[Address(RVA = "0xBD9C80", Offset = "0xBD8C80", VA = "0x180BD9C80")]
|
|
public int CompareTo(SqlString value)
|
|
{
|
|
return 0;
|
|
}
|
|
|
|
/// <summary>Compares the supplied object parameter to the <see cref="P:System.Data.SqlTypes.SqlString.Value" /> property of the <see cref="T:System.Data.SqlTypes.SqlString" /> object.</summary>
|
|
/// <param name="value">The object to be compared.</param>
|
|
/// <returns>
|
|
/// <see langword="true" /> if the object is an instance of <see cref="T:System.Data.SqlTypes.SqlString" /> and the two are equal; otherwise, <see langword="false" />.</returns>
|
|
// Token: 0x06000AB0 RID: 2736 RVA: 0x00006B0C File Offset: 0x00004D0C
|
|
[Token(Token = "0x6000AB0")]
|
|
[Address(RVA = "0xBD9EC0", Offset = "0xBD8EC0", VA = "0x180BD9EC0", Slot = "0")]
|
|
public override bool Equals(object value)
|
|
{
|
|
return default(bool);
|
|
}
|
|
|
|
/// <summary>Gets the hash code for this instance.</summary>
|
|
/// <returns>A 32-bit signed integer hash code.</returns>
|
|
// Token: 0x06000AB1 RID: 2737 RVA: 0x00006B24 File Offset: 0x00004D24
|
|
[Token(Token = "0x6000AB1")]
|
|
[Address(RVA = "0xBDA180", Offset = "0xBD9180", VA = "0x180BDA180", Slot = "2")]
|
|
public override int GetHashCode()
|
|
{
|
|
return 0;
|
|
}
|
|
|
|
/// <summary>This member supports the .NET Framework infrastructure and is not intended to be used directly from your code.</summary>
|
|
/// <returns>An <see langword="XmlSchema" />.</returns>
|
|
// Token: 0x06000AB2 RID: 2738 RVA: 0x00002050 File Offset: 0x00000250
|
|
[Token(Token = "0x6000AB2")]
|
|
[Address(RVA = "0x4242C0", Offset = "0x4232C0", VA = "0x1804242C0", Slot = "6")]
|
|
XmlSchema IXmlSerializable.GetSchema()
|
|
{
|
|
return null;
|
|
}
|
|
|
|
/// <summary>This member supports the .NET Framework infrastructure and is not intended to be used directly from your code.</summary>
|
|
/// <param name="reader">
|
|
/// <see langword="XmlReader" />
|
|
/// </param>
|
|
// Token: 0x06000AB3 RID: 2739 RVA: 0x0000206A File Offset: 0x0000026A
|
|
[Token(Token = "0x6000AB3")]
|
|
[Address(RVA = "0xBDA900", Offset = "0xBD9900", VA = "0x180BDA900", Slot = "7")]
|
|
void IXmlSerializable.ReadXml(XmlReader reader)
|
|
{
|
|
}
|
|
|
|
/// <summary>This member supports the .NET Framework infrastructure and is not intended to be used directly from your code.</summary>
|
|
/// <param name="writer">
|
|
/// <see langword="XmlWriter" />
|
|
/// </param>
|
|
// Token: 0x06000AB4 RID: 2740 RVA: 0x0000206A File Offset: 0x0000026A
|
|
[Token(Token = "0x6000AB4")]
|
|
[Address(RVA = "0xBDA9F0", Offset = "0xBD99F0", VA = "0x180BDA9F0", Slot = "8")]
|
|
void IXmlSerializable.WriteXml(XmlWriter writer)
|
|
{
|
|
}
|
|
|
|
/// <summary>Returns the XML Schema definition language (XSD) of the specified <see cref="T:System.Xml.Schema.XmlSchemaSet" />.</summary>
|
|
/// <param name="schemaSet">A <see cref="T:System.Xml.Schema.XmlSchemaSet" />.</param>
|
|
/// <returns>A <see langword="string" /> value that indicates the XSD of the specified <see cref="T:System.Xml.Schema.XmlSchemaSet" />.</returns>
|
|
// Token: 0x06000AB5 RID: 2741 RVA: 0x00002050 File Offset: 0x00000250
|
|
[Token(Token = "0x6000AB5")]
|
|
[Address(RVA = "0xBDA3D0", Offset = "0xBD93D0", VA = "0x180BDA3D0")]
|
|
public static XmlQualifiedName GetXsdType(XmlSchemaSet schemaSet)
|
|
{
|
|
return null;
|
|
}
|
|
|
|
// Token: 0x040003F5 RID: 1013
|
|
[FieldOffset(Offset = "0x0")]
|
|
[Token(Token = "0x40003F5")]
|
|
private string m_value;
|
|
|
|
// Token: 0x040003F6 RID: 1014
|
|
[FieldOffset(Offset = "0x8")]
|
|
[Token(Token = "0x40003F6")]
|
|
private CompareInfo m_cmpInfo;
|
|
|
|
// Token: 0x040003F7 RID: 1015
|
|
[FieldOffset(Offset = "0x10")]
|
|
[Token(Token = "0x40003F7")]
|
|
private int m_lcid;
|
|
|
|
// Token: 0x040003F8 RID: 1016
|
|
[FieldOffset(Offset = "0x14")]
|
|
[Token(Token = "0x40003F8")]
|
|
private SqlCompareOptions m_flag;
|
|
|
|
// Token: 0x040003F9 RID: 1017
|
|
[FieldOffset(Offset = "0x18")]
|
|
[Token(Token = "0x40003F9")]
|
|
private bool m_fNotNull;
|
|
|
|
/// <summary>Represents a <see cref="T:System.DBNull" /> that can be assigned to this instance of the <see cref="T:System.Data.SqlTypes.SqlString" /> structure.</summary>
|
|
// Token: 0x040003FA RID: 1018
|
|
[Token(Token = "0x40003FA")]
|
|
public static readonly SqlString Null;
|
|
|
|
// Token: 0x040003FB RID: 1019
|
|
[Token(Token = "0x40003FB")]
|
|
internal static readonly UnicodeEncoding s_unicodeEncoding;
|
|
|
|
/// <summary>Specifies that <see cref="T:System.Data.SqlTypes.SqlString" /> comparisons should ignore case.</summary>
|
|
// Token: 0x040003FC RID: 1020
|
|
[Token(Token = "0x40003FC")]
|
|
public static readonly int IgnoreCase;
|
|
|
|
/// <summary>Specifies that the string comparison must ignore the character width.</summary>
|
|
// Token: 0x040003FD RID: 1021
|
|
[Token(Token = "0x40003FD")]
|
|
public static readonly int IgnoreWidth;
|
|
|
|
/// <summary>Specifies that the string comparison must ignore non-space combining characters, such as diacritics.</summary>
|
|
// Token: 0x040003FE RID: 1022
|
|
[Token(Token = "0x40003FE")]
|
|
public static readonly int IgnoreNonSpace;
|
|
|
|
/// <summary>Specifies that the string comparison must ignore the Kana type.</summary>
|
|
// Token: 0x040003FF RID: 1023
|
|
[Token(Token = "0x40003FF")]
|
|
public static readonly int IgnoreKanaType;
|
|
|
|
/// <summary>Specifies that sorts should be based on a characters numeric value instead of its alphabetical value.</summary>
|
|
// Token: 0x04000400 RID: 1024
|
|
[Token(Token = "0x4000400")]
|
|
public static readonly int BinarySort;
|
|
|
|
/// <summary>Specifies that sorts should be based on a character's numeric value instead of its alphabetical value.</summary>
|
|
// Token: 0x04000401 RID: 1025
|
|
[Token(Token = "0x4000401")]
|
|
public static readonly int BinarySort2;
|
|
|
|
// Token: 0x04000402 RID: 1026
|
|
[Token(Token = "0x4000402")]
|
|
private static readonly SqlCompareOptions s_iDefaultFlag;
|
|
|
|
// Token: 0x04000403 RID: 1027
|
|
[Token(Token = "0x4000403")]
|
|
private static readonly CompareOptions s_iValidCompareOptionMask;
|
|
|
|
// Token: 0x04000404 RID: 1028
|
|
[Token(Token = "0x4000404")]
|
|
internal static readonly SqlCompareOptions s_iValidSqlCompareOptionMask;
|
|
|
|
// Token: 0x04000405 RID: 1029
|
|
[Token(Token = "0x4000405")]
|
|
internal static readonly int s_lcidUSEnglish;
|
|
|
|
// Token: 0x04000406 RID: 1030
|
|
[Token(Token = "0x4000406")]
|
|
private static readonly int s_lcidBinary;
|
|
}
|
|
}
|