353 lines
14 KiB
C#
353 lines
14 KiB
C#
using System;
|
|
using Cpp2IlInjected;
|
|
|
|
namespace System
|
|
{
|
|
/// <summary>Provides a custom constructor for uniform resource identifiers (URIs) and modifies URIs for the <see cref="T:System.Uri" /> class.</summary>
|
|
// Token: 0x02000074 RID: 116
|
|
[Token(Token = "0x2000074")]
|
|
public class UriBuilder
|
|
{
|
|
/// <summary>Initializes a new instance of the <see cref="T:System.UriBuilder" /> class.</summary>
|
|
// Token: 0x060001E5 RID: 485 RVA: 0x00002053 File Offset: 0x00000253
|
|
[Token(Token = "0x60001E5")]
|
|
[Address(RVA = "0x71D2B0", Offset = "0x71C0B0", VA = "0x18071D2B0")]
|
|
public UriBuilder()
|
|
{
|
|
}
|
|
|
|
/// <summary>Initializes a new instance of the <see cref="T:System.UriBuilder" /> class with the specified URI.</summary>
|
|
/// <param name="uri">A URI string.</param>
|
|
/// <exception cref="T:System.ArgumentNullException">
|
|
/// <paramref name="uri" /> is <see langword="null" />.</exception>
|
|
/// <exception cref="T:System.UriFormatException">In the .NET for Windows Store apps or the Portable Class Library, catch the base class exception, <see cref="T:System.FormatException" />, instead.
|
|
///
|
|
///
|
|
/// <paramref name="uri" /> is a zero length string or contains only spaces.
|
|
/// -or-
|
|
/// The parsing routine detected a scheme in an invalid form.
|
|
/// -or-
|
|
/// The parser detected more than two consecutive slashes in a URI that does not use the "file" scheme.
|
|
/// -or-
|
|
/// <paramref name="uri" /> is not a valid URI.</exception>
|
|
// Token: 0x060001E6 RID: 486 RVA: 0x00002053 File Offset: 0x00000253
|
|
[Token(Token = "0x60001E6")]
|
|
[Address(RVA = "0x71CAF0", Offset = "0x71B8F0", VA = "0x18071CAF0")]
|
|
public UriBuilder(string uri)
|
|
{
|
|
}
|
|
|
|
/// <summary>Initializes a new instance of the <see cref="T:System.UriBuilder" /> class with the specified <see cref="T:System.Uri" /> instance.</summary>
|
|
/// <param name="uri">An instance of the <see cref="T:System.Uri" /> class.</param>
|
|
/// <exception cref="T:System.ArgumentNullException">
|
|
/// <paramref name="uri" /> is <see langword="null" />.</exception>
|
|
// Token: 0x060001E7 RID: 487 RVA: 0x00002053 File Offset: 0x00000253
|
|
[Token(Token = "0x60001E7")]
|
|
[Address(RVA = "0x71C9B0", Offset = "0x71B7B0", VA = "0x18071C9B0")]
|
|
public UriBuilder(Uri uri)
|
|
{
|
|
}
|
|
|
|
// Token: 0x060001E8 RID: 488 RVA: 0x00002053 File Offset: 0x00000253
|
|
[Token(Token = "0x60001E8")]
|
|
[Address(RVA = "0x71BFF0", Offset = "0x71ADF0", VA = "0x18071BFF0")]
|
|
private void Init(Uri uri)
|
|
{
|
|
}
|
|
|
|
/// <summary>Initializes a new instance of the <see cref="T:System.UriBuilder" /> class with the specified scheme and host.</summary>
|
|
/// <param name="schemeName">An Internet access protocol.</param>
|
|
/// <param name="hostName">A DNS-style domain name or IP address.</param>
|
|
// Token: 0x060001E9 RID: 489 RVA: 0x00002053 File Offset: 0x00000253
|
|
[Token(Token = "0x60001E9")]
|
|
[Address(RVA = "0x71CE90", Offset = "0x71BC90", VA = "0x18071CE90")]
|
|
public UriBuilder(string schemeName, string hostName)
|
|
{
|
|
}
|
|
|
|
/// <summary>Initializes a new instance of the <see cref="T:System.UriBuilder" /> class with the specified scheme, host, and port.</summary>
|
|
/// <param name="scheme">An Internet access protocol.</param>
|
|
/// <param name="host">A DNS-style domain name or IP address.</param>
|
|
/// <param name="portNumber">An IP port number for the service.</param>
|
|
/// <exception cref="T:System.ArgumentOutOfRangeException">
|
|
/// <paramref name="portNumber" /> is less than -1 or greater than 65,535.</exception>
|
|
// Token: 0x060001EA RID: 490 RVA: 0x00002053 File Offset: 0x00000253
|
|
[Token(Token = "0x60001EA")]
|
|
[Address(RVA = "0x71D120", Offset = "0x71BF20", VA = "0x18071D120")]
|
|
public UriBuilder(string scheme, string host, int portNumber)
|
|
{
|
|
}
|
|
|
|
/// <summary>Initializes a new instance of the <see cref="T:System.UriBuilder" /> class with the specified scheme, host, port number, and path.</summary>
|
|
/// <param name="scheme">An Internet access protocol.</param>
|
|
/// <param name="host">A DNS-style domain name or IP address.</param>
|
|
/// <param name="port">An IP port number for the service.</param>
|
|
/// <param name="pathValue">The path to the Internet resource.</param>
|
|
/// <exception cref="T:System.ArgumentOutOfRangeException">
|
|
/// <paramref name="port" /> is less than -1 or greater than 65,535.</exception>
|
|
// Token: 0x060001EB RID: 491 RVA: 0x00002053 File Offset: 0x00000253
|
|
[Token(Token = "0x60001EB")]
|
|
[Address(RVA = "0x71D1A0", Offset = "0x71BFA0", VA = "0x18071D1A0")]
|
|
public UriBuilder(string scheme, string host, int port, string pathValue)
|
|
{
|
|
}
|
|
|
|
/// <summary>Initializes a new instance of the <see cref="T:System.UriBuilder" /> class with the specified scheme, host, port number, path and query string or fragment identifier.</summary>
|
|
/// <param name="scheme">An Internet access protocol.</param>
|
|
/// <param name="host">A DNS-style domain name or IP address.</param>
|
|
/// <param name="port">An IP port number for the service.</param>
|
|
/// <param name="path">The path to the Internet resource.</param>
|
|
/// <param name="extraValue">A query string or fragment identifier.</param>
|
|
/// <exception cref="T:System.ArgumentException">
|
|
/// <paramref name="extraValue" /> is neither <see langword="null" /> nor <see cref="F:System.String.Empty" />, nor does a valid fragment identifier begin with a number sign (#), nor a valid query string begin with a question mark (?).</exception>
|
|
/// <exception cref="T:System.ArgumentOutOfRangeException">
|
|
/// <paramref name="port" /> is less than -1 or greater than 65,535.</exception>
|
|
// Token: 0x060001EC RID: 492 RVA: 0x00002053 File Offset: 0x00000253
|
|
[Token(Token = "0x60001EC")]
|
|
[Address(RVA = "0x71CCB0", Offset = "0x71BAB0", VA = "0x18071CCB0")]
|
|
public UriBuilder(string scheme, string host, int port, string path, string extraValue)
|
|
{
|
|
}
|
|
|
|
// Token: 0x1700003F RID: 63
|
|
// (set) Token: 0x060001ED RID: 493 RVA: 0x00002053 File Offset: 0x00000253
|
|
[Token(Token = "0x1700003F")]
|
|
private string Extra
|
|
{
|
|
[Token(Token = "0x60001ED")]
|
|
[Address(RVA = "0x71D440", Offset = "0x71C240", VA = "0x18071D440")]
|
|
set
|
|
{
|
|
}
|
|
}
|
|
|
|
/// <summary>Gets or sets the fragment portion of the URI.</summary>
|
|
/// <returns>The fragment portion of the URI. The fragment identifier ("#") is added to the beginning of the fragment.</returns>
|
|
// Token: 0x17000040 RID: 64
|
|
// (set) Token: 0x060001EE RID: 494 RVA: 0x00002053 File Offset: 0x00000253
|
|
[Token(Token = "0x17000040")]
|
|
public string Fragment
|
|
{
|
|
[Token(Token = "0x60001EE")]
|
|
[Address(RVA = "0x71D6A0", Offset = "0x71C4A0", VA = "0x18071D6A0")]
|
|
set
|
|
{
|
|
}
|
|
}
|
|
|
|
/// <summary>Gets or sets the Domain Name System (DNS) host name or IP address of a server.</summary>
|
|
/// <returns>The DNS host name or IP address of the server.</returns>
|
|
// Token: 0x17000041 RID: 65
|
|
// (set) Token: 0x060001EF RID: 495 RVA: 0x00002053 File Offset: 0x00000253
|
|
[Token(Token = "0x17000041")]
|
|
public string Host
|
|
{
|
|
[Token(Token = "0x60001EF")]
|
|
[Address(RVA = "0x71D730", Offset = "0x71C530", VA = "0x18071D730")]
|
|
set
|
|
{
|
|
}
|
|
}
|
|
|
|
/// <summary>Gets or sets the path to the resource referenced by the URI.</summary>
|
|
/// <returns>The path to the resource referenced by the URI.</returns>
|
|
// Token: 0x17000042 RID: 66
|
|
// (get) Token: 0x060001F0 RID: 496 RVA: 0x00002050 File Offset: 0x00000250
|
|
// (set) Token: 0x060001F1 RID: 497 RVA: 0x00002053 File Offset: 0x00000253
|
|
[Token(Token = "0x17000042")]
|
|
public string Path
|
|
{
|
|
[Token(Token = "0x60001F0")]
|
|
[Address(RVA = "0x3FA180", Offset = "0x3F8F80", VA = "0x1803FA180")]
|
|
get
|
|
{
|
|
return null;
|
|
}
|
|
[Token(Token = "0x60001F1")]
|
|
[Address(RVA = "0x71D7E0", Offset = "0x71C5E0", VA = "0x18071D7E0")]
|
|
set
|
|
{
|
|
}
|
|
}
|
|
|
|
/// <summary>Gets or sets the port number of the URI.</summary>
|
|
/// <returns>The port number of the URI.</returns>
|
|
/// <exception cref="T:System.ArgumentOutOfRangeException">The port cannot be set to a value less than -1 or greater than 65,535.</exception>
|
|
// Token: 0x17000043 RID: 67
|
|
// (set) Token: 0x060001F2 RID: 498 RVA: 0x00002053 File Offset: 0x00000253
|
|
[Token(Token = "0x17000043")]
|
|
public int Port
|
|
{
|
|
[Token(Token = "0x60001F2")]
|
|
[Address(RVA = "0x71D880", Offset = "0x71C680", VA = "0x18071D880")]
|
|
set
|
|
{
|
|
}
|
|
}
|
|
|
|
/// <summary>Gets or sets any query information included in the URI.</summary>
|
|
/// <returns>The query information included in the URI.</returns>
|
|
// Token: 0x17000044 RID: 68
|
|
// (get) Token: 0x060001F3 RID: 499 RVA: 0x00002050 File Offset: 0x00000250
|
|
// (set) Token: 0x060001F4 RID: 500 RVA: 0x00002053 File Offset: 0x00000253
|
|
[Token(Token = "0x17000044")]
|
|
public string Query
|
|
{
|
|
[Token(Token = "0x60001F3")]
|
|
[Address(RVA = "0x408890", Offset = "0x407690", VA = "0x180408890")]
|
|
get
|
|
{
|
|
return null;
|
|
}
|
|
[Token(Token = "0x60001F4")]
|
|
[Address(RVA = "0x71D900", Offset = "0x71C700", VA = "0x18071D900")]
|
|
set
|
|
{
|
|
}
|
|
}
|
|
|
|
/// <summary>Gets or sets the scheme name of the URI.</summary>
|
|
/// <returns>The scheme of the URI.</returns>
|
|
/// <exception cref="T:System.ArgumentException">The scheme cannot be set to an invalid scheme name.</exception>
|
|
// Token: 0x17000045 RID: 69
|
|
// (get) Token: 0x060001F5 RID: 501 RVA: 0x00002050 File Offset: 0x00000250
|
|
// (set) Token: 0x060001F6 RID: 502 RVA: 0x00002053 File Offset: 0x00000253
|
|
[Token(Token = "0x17000045")]
|
|
public string Scheme
|
|
{
|
|
[Token(Token = "0x60001F5")]
|
|
[Address(RVA = "0x3FA170", Offset = "0x3F8F70", VA = "0x1803FA170")]
|
|
get
|
|
{
|
|
return null;
|
|
}
|
|
[Token(Token = "0x60001F6")]
|
|
[Address(RVA = "0x71D990", Offset = "0x71C790", VA = "0x18071D990")]
|
|
set
|
|
{
|
|
}
|
|
}
|
|
|
|
/// <summary>Gets the <see cref="T:System.Uri" /> instance constructed by the specified <see cref="T:System.UriBuilder" /> instance.</summary>
|
|
/// <returns>A <see cref="T:System.Uri" /> that contains the URI constructed by the <see cref="T:System.UriBuilder" />.</returns>
|
|
/// <exception cref="T:System.UriFormatException">In the .NET for Windows Store apps or the Portable Class Library, catch the base class exception, <see cref="T:System.FormatException" />, instead.
|
|
///
|
|
///
|
|
///
|
|
///
|
|
/// The URI constructed by the <see cref="T:System.UriBuilder" /> properties is invalid.</exception>
|
|
// Token: 0x17000046 RID: 70
|
|
// (get) Token: 0x060001F7 RID: 503 RVA: 0x00002050 File Offset: 0x00000250
|
|
[Token(Token = "0x17000046")]
|
|
public Uri Uri
|
|
{
|
|
[Token(Token = "0x60001F7")]
|
|
[Address(RVA = "0x71D3A0", Offset = "0x71C1A0", VA = "0x18071D3A0")]
|
|
get
|
|
{
|
|
return null;
|
|
}
|
|
}
|
|
|
|
/// <summary>Compares an existing <see cref="T:System.Uri" /> instance with the contents of the <see cref="T:System.UriBuilder" /> for equality.</summary>
|
|
/// <param name="rparam">The object to compare with the current instance.</param>
|
|
/// <returns>
|
|
/// <see langword="true" /> if <paramref name="rparam" /> represents the same <see cref="T:System.Uri" /> as the <see cref="T:System.Uri" /> constructed by this <see cref="T:System.UriBuilder" /> instance; otherwise, <see langword="false" />.</returns>
|
|
// Token: 0x060001F8 RID: 504 RVA: 0x00002898 File Offset: 0x00000A98
|
|
[Token(Token = "0x60001F8")]
|
|
[Address(RVA = "0x71BF50", Offset = "0x71AD50", VA = "0x18071BF50", Slot = "0")]
|
|
public override bool Equals(object rparam)
|
|
{
|
|
return default(bool);
|
|
}
|
|
|
|
/// <summary>Returns the hash code for the URI.</summary>
|
|
/// <returns>The hash code generated for the URI.</returns>
|
|
// Token: 0x060001F9 RID: 505 RVA: 0x000028B0 File Offset: 0x00000AB0
|
|
[Token(Token = "0x60001F9")]
|
|
[Address(RVA = "0x71BFC0", Offset = "0x71ADC0", VA = "0x18071BFC0", Slot = "2")]
|
|
public override int GetHashCode()
|
|
{
|
|
return 0;
|
|
}
|
|
|
|
// Token: 0x060001FA RID: 506 RVA: 0x00002053 File Offset: 0x00000253
|
|
[Token(Token = "0x60001FA")]
|
|
[Address(RVA = "0x71C160", Offset = "0x71AF60", VA = "0x18071C160")]
|
|
private void SetFieldsFromUri(Uri uri)
|
|
{
|
|
}
|
|
|
|
/// <summary>Returns the display string for the specified <see cref="T:System.UriBuilder" /> instance.</summary>
|
|
/// <returns>The string that contains the unescaped display string of the <see cref="T:System.UriBuilder" />.</returns>
|
|
/// <exception cref="T:System.UriFormatException">In the .NET for Windows Store apps or the Portable Class Library, catch the base class exception, <see cref="T:System.FormatException" />, instead.
|
|
///
|
|
///
|
|
///
|
|
///
|
|
/// The <see cref="T:System.UriBuilder" /> instance has a bad password.</exception>
|
|
// Token: 0x060001FB RID: 507 RVA: 0x00002050 File Offset: 0x00000250
|
|
[Token(Token = "0x60001FB")]
|
|
[Address(RVA = "0x71C2C0", Offset = "0x71B0C0", VA = "0x18071C2C0", Slot = "3")]
|
|
public override string ToString()
|
|
{
|
|
return null;
|
|
}
|
|
|
|
// Token: 0x04000129 RID: 297
|
|
[FieldOffset(Offset = "0x10")]
|
|
[Token(Token = "0x4000129")]
|
|
private bool _changed;
|
|
|
|
// Token: 0x0400012A RID: 298
|
|
[FieldOffset(Offset = "0x18")]
|
|
[Token(Token = "0x400012A")]
|
|
private string _fragment;
|
|
|
|
// Token: 0x0400012B RID: 299
|
|
[FieldOffset(Offset = "0x20")]
|
|
[Token(Token = "0x400012B")]
|
|
private string _host;
|
|
|
|
// Token: 0x0400012C RID: 300
|
|
[FieldOffset(Offset = "0x28")]
|
|
[Token(Token = "0x400012C")]
|
|
private string _password;
|
|
|
|
// Token: 0x0400012D RID: 301
|
|
[FieldOffset(Offset = "0x30")]
|
|
[Token(Token = "0x400012D")]
|
|
private string _path;
|
|
|
|
// Token: 0x0400012E RID: 302
|
|
[FieldOffset(Offset = "0x38")]
|
|
[Token(Token = "0x400012E")]
|
|
private int _port;
|
|
|
|
// Token: 0x0400012F RID: 303
|
|
[FieldOffset(Offset = "0x40")]
|
|
[Token(Token = "0x400012F")]
|
|
private string _query;
|
|
|
|
// Token: 0x04000130 RID: 304
|
|
[FieldOffset(Offset = "0x48")]
|
|
[Token(Token = "0x4000130")]
|
|
private string _scheme;
|
|
|
|
// Token: 0x04000131 RID: 305
|
|
[FieldOffset(Offset = "0x50")]
|
|
[Token(Token = "0x4000131")]
|
|
private string _schemeDelimiter;
|
|
|
|
// Token: 0x04000132 RID: 306
|
|
[FieldOffset(Offset = "0x58")]
|
|
[Token(Token = "0x4000132")]
|
|
private Uri _uri;
|
|
|
|
// Token: 0x04000133 RID: 307
|
|
[FieldOffset(Offset = "0x60")]
|
|
[Token(Token = "0x4000133")]
|
|
private string _username;
|
|
}
|
|
}
|