172 lines
7.4 KiB
C#
172 lines
7.4 KiB
C#
using System;
|
|
using System.Text;
|
|
using Cpp2IlInjected;
|
|
|
|
namespace System.Net.Mail
|
|
{
|
|
/// <summary>Represents the address of an electronic mail sender or recipient.</summary>
|
|
// Token: 0x020002B5 RID: 693
|
|
[Token(Token = "0x20002B5")]
|
|
public class MailAddress
|
|
{
|
|
/// <summary>Initializes a new instance of the <see cref="T:System.Net.Mail.MailAddress" /> class using the specified address.</summary>
|
|
/// <param name="address">A <see cref="T:System.String" /> that contains an email address.</param>
|
|
/// <exception cref="T:System.ArgumentNullException">
|
|
/// <paramref name="address" /> is <see langword="null" />.</exception>
|
|
/// <exception cref="T:System.ArgumentException">
|
|
/// <paramref name="address" /> is <see cref="F:System.String.Empty" /> ("").</exception>
|
|
/// <exception cref="T:System.FormatException">
|
|
/// <paramref name="address" /> is not in a recognized format.</exception>
|
|
// Token: 0x06001238 RID: 4664 RVA: 0x00002053 File Offset: 0x00000253
|
|
[Token(Token = "0x6001238")]
|
|
[Address(RVA = "0x8A52D0", Offset = "0x8A42D0", VA = "0x1808A52D0")]
|
|
public MailAddress(string address)
|
|
{
|
|
}
|
|
|
|
/// <summary>Initializes a new instance of the <see cref="T:System.Net.Mail.MailAddress" /> class using the specified address and display name.</summary>
|
|
/// <param name="address">A <see cref="T:System.String" /> that contains an email address.</param>
|
|
/// <param name="displayName">A <see cref="T:System.String" /> that contains the display name associated with <paramref name="address" />. This parameter can be <see langword="null" />.</param>
|
|
/// <exception cref="T:System.ArgumentNullException">
|
|
/// <paramref name="address" /> is <see langword="null" />.</exception>
|
|
/// <exception cref="T:System.ArgumentException">
|
|
/// <paramref name="address" /> is <see cref="F:System.String.Empty" /> ("").</exception>
|
|
/// <exception cref="T:System.FormatException">
|
|
/// <paramref name="address" /> is not in a recognized format.
|
|
/// -or-
|
|
/// <paramref name="address" /> contains non-ASCII characters.</exception>
|
|
// Token: 0x06001239 RID: 4665 RVA: 0x00002053 File Offset: 0x00000253
|
|
[Token(Token = "0x6001239")]
|
|
[Address(RVA = "0x8A51E0", Offset = "0x8A41E0", VA = "0x1808A51E0")]
|
|
public MailAddress(string address, string displayName)
|
|
{
|
|
}
|
|
|
|
/// <summary>Initializes a new instance of the <see cref="T:System.Net.Mail.MailAddress" /> class using the specified address, display name, and encoding.</summary>
|
|
/// <param name="address">A <see cref="T:System.String" /> that contains an email address.</param>
|
|
/// <param name="displayName">A <see cref="T:System.String" /> that contains the display name associated with <paramref name="address" />.</param>
|
|
/// <param name="displayNameEncoding">The <see cref="T:System.Text.Encoding" /> that defines the character set used for <paramref name="displayName" />.</param>
|
|
/// <exception cref="T:System.ArgumentNullException">
|
|
/// <paramref name="address" /> is <see langword="null" />.
|
|
/// -or-
|
|
/// <paramref name="displayName" /> is <see langword="null" />.</exception>
|
|
/// <exception cref="T:System.ArgumentException">
|
|
/// <paramref name="address" /> is <see cref="F:System.String.Empty" /> ("").
|
|
/// -or-
|
|
/// <paramref name="displayName" /> is <see cref="F:System.String.Empty" /> ("").</exception>
|
|
/// <exception cref="T:System.FormatException">
|
|
/// <paramref name="address" /> is not in a recognized format.
|
|
/// -or-
|
|
/// <paramref name="address" /> contains non-ASCII characters.</exception>
|
|
// Token: 0x0600123A RID: 4666 RVA: 0x00002053 File Offset: 0x00000253
|
|
[Token(Token = "0x600123A")]
|
|
[Address(RVA = "0x8A5100", Offset = "0x8A4100", VA = "0x1808A5100")]
|
|
[MonoTODO]
|
|
public MailAddress(string address, string displayName, Encoding displayNameEncoding)
|
|
{
|
|
}
|
|
|
|
// Token: 0x0600123B RID: 4667 RVA: 0x00002053 File Offset: 0x00000253
|
|
[Token(Token = "0x600123B")]
|
|
[Address(RVA = "0x8A4D50", Offset = "0x8A3D50", VA = "0x1808A4D50")]
|
|
private void ParseAddress(string address)
|
|
{
|
|
}
|
|
|
|
/// <summary>Gets the email address specified when this instance was created.</summary>
|
|
/// <returns>A <see cref="T:System.String" /> that contains the email address.</returns>
|
|
// Token: 0x170003B3 RID: 947
|
|
// (get) Token: 0x0600123C RID: 4668 RVA: 0x00002050 File Offset: 0x00000250
|
|
[Token(Token = "0x170003B3")]
|
|
public string Address
|
|
{
|
|
[Token(Token = "0x600123C")]
|
|
[Address(RVA = "0x411530", Offset = "0x410530", VA = "0x180411530")]
|
|
get
|
|
{
|
|
return null;
|
|
}
|
|
}
|
|
|
|
/// <summary>Gets the display name composed from the display name and address information specified when this instance was created.</summary>
|
|
/// <returns>A <see cref="T:System.String" /> that contains the display name; otherwise, <see cref="F:System.String.Empty" /> ("") if no display name information was specified when this instance was created.</returns>
|
|
// Token: 0x170003B4 RID: 948
|
|
// (get) Token: 0x0600123D RID: 4669 RVA: 0x00002050 File Offset: 0x00000250
|
|
[Token(Token = "0x170003B4")]
|
|
public string DisplayName
|
|
{
|
|
[Token(Token = "0x600123D")]
|
|
[Address(RVA = "0x8A53A0", Offset = "0x8A43A0", VA = "0x1808A53A0")]
|
|
get
|
|
{
|
|
return null;
|
|
}
|
|
}
|
|
|
|
/// <summary>Compares two mail addresses.</summary>
|
|
/// <param name="value">A <see cref="T:System.Net.Mail.MailAddress" /> instance to compare to the current instance.</param>
|
|
/// <returns>
|
|
/// <see langword="true" /> if the two mail addresses are equal; otherwise, <see langword="false" />.</returns>
|
|
// Token: 0x0600123E RID: 4670 RVA: 0x000087A8 File Offset: 0x000069A8
|
|
[Token(Token = "0x600123E")]
|
|
[Address(RVA = "0x8A1720", Offset = "0x8A0720", VA = "0x1808A1720", Slot = "0")]
|
|
public override bool Equals(object value)
|
|
{
|
|
return default(bool);
|
|
}
|
|
|
|
/// <summary>Returns a hash value for a mail address.</summary>
|
|
/// <returns>An integer hash value.</returns>
|
|
// Token: 0x0600123F RID: 4671 RVA: 0x000087C0 File Offset: 0x000069C0
|
|
[Token(Token = "0x600123F")]
|
|
[Address(RVA = "0x8A4D10", Offset = "0x8A3D10", VA = "0x1808A4D10", Slot = "2")]
|
|
public override int GetHashCode()
|
|
{
|
|
return 0;
|
|
}
|
|
|
|
/// <summary>Returns a string representation of this instance.</summary>
|
|
/// <returns>A <see cref="T:System.String" /> that contains the contents of this <see cref="T:System.Net.Mail.MailAddress" />.</returns>
|
|
// Token: 0x06001240 RID: 4672 RVA: 0x00002050 File Offset: 0x00000250
|
|
[Token(Token = "0x6001240")]
|
|
[Address(RVA = "0x8A5060", Offset = "0x8A4060", VA = "0x1808A5060", Slot = "3")]
|
|
public override string ToString()
|
|
{
|
|
return null;
|
|
}
|
|
|
|
// Token: 0x06001241 RID: 4673 RVA: 0x00002050 File Offset: 0x00000250
|
|
[Token(Token = "0x6001241")]
|
|
[Address(RVA = "0x8A4CC0", Offset = "0x8A3CC0", VA = "0x1808A4CC0")]
|
|
private static FormatException CreateFormatException()
|
|
{
|
|
return null;
|
|
}
|
|
|
|
// Token: 0x04000AC8 RID: 2760
|
|
[FieldOffset(Offset = "0x10")]
|
|
[Token(Token = "0x4000AC8")]
|
|
private string address;
|
|
|
|
// Token: 0x04000AC9 RID: 2761
|
|
[FieldOffset(Offset = "0x18")]
|
|
[Token(Token = "0x4000AC9")]
|
|
private string displayName;
|
|
|
|
// Token: 0x04000ACA RID: 2762
|
|
[FieldOffset(Offset = "0x20")]
|
|
[Token(Token = "0x4000ACA")]
|
|
private string host;
|
|
|
|
// Token: 0x04000ACB RID: 2763
|
|
[FieldOffset(Offset = "0x28")]
|
|
[Token(Token = "0x4000ACB")]
|
|
private string user;
|
|
|
|
// Token: 0x04000ACC RID: 2764
|
|
[FieldOffset(Offset = "0x30")]
|
|
[Token(Token = "0x4000ACC")]
|
|
private string to_string;
|
|
}
|
|
}
|