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: 0x020002B9 RID: 697
|
|
[Token(Token = "0x20002B9")]
|
|
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: 0x0600124E RID: 4686 RVA: 0x00002053 File Offset: 0x00000253
|
|
[Token(Token = "0x600124E")]
|
|
[Address(RVA = "0x222AD20", Offset = "0x2229B20", VA = "0x18222AD20")]
|
|
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: 0x0600124F RID: 4687 RVA: 0x00002053 File Offset: 0x00000253
|
|
[Token(Token = "0x600124F")]
|
|
[Address(RVA = "0x222AC30", Offset = "0x2229A30", VA = "0x18222AC30")]
|
|
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: 0x06001250 RID: 4688 RVA: 0x00002053 File Offset: 0x00000253
|
|
[Token(Token = "0x6001250")]
|
|
[Address(RVA = "0x222AB50", Offset = "0x2229950", VA = "0x18222AB50")]
|
|
[MonoTODO]
|
|
public MailAddress(string address, string displayName, Encoding displayNameEncoding)
|
|
{
|
|
}
|
|
|
|
// Token: 0x06001251 RID: 4689 RVA: 0x00002053 File Offset: 0x00000253
|
|
[Token(Token = "0x6001251")]
|
|
[Address(RVA = "0x222A7A0", Offset = "0x22295A0", VA = "0x18222A7A0")]
|
|
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: 0x170003B7 RID: 951
|
|
// (get) Token: 0x06001252 RID: 4690 RVA: 0x00002050 File Offset: 0x00000250
|
|
[Token(Token = "0x170003B7")]
|
|
public string Address
|
|
{
|
|
[Token(Token = "0x6001252")]
|
|
[Address(RVA = "0x3F6E20", Offset = "0x3F5C20", VA = "0x1803F6E20")]
|
|
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: 0x170003B8 RID: 952
|
|
// (get) Token: 0x06001253 RID: 4691 RVA: 0x00002050 File Offset: 0x00000250
|
|
[Token(Token = "0x170003B8")]
|
|
public string DisplayName
|
|
{
|
|
[Token(Token = "0x6001253")]
|
|
[Address(RVA = "0x222ADF0", Offset = "0x2229BF0", VA = "0x18222ADF0")]
|
|
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: 0x06001254 RID: 4692 RVA: 0x000087C0 File Offset: 0x000069C0
|
|
[Token(Token = "0x6001254")]
|
|
[Address(RVA = "0x2227260", Offset = "0x2226060", VA = "0x182227260", 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: 0x06001255 RID: 4693 RVA: 0x000087D8 File Offset: 0x000069D8
|
|
[Token(Token = "0x6001255")]
|
|
[Address(RVA = "0x1964CC0", Offset = "0x1963AC0", VA = "0x181964CC0", 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: 0x06001256 RID: 4694 RVA: 0x00002050 File Offset: 0x00000250
|
|
[Token(Token = "0x6001256")]
|
|
[Address(RVA = "0x222AAB0", Offset = "0x22298B0", VA = "0x18222AAB0", Slot = "3")]
|
|
public override string ToString()
|
|
{
|
|
return null;
|
|
}
|
|
|
|
// Token: 0x06001257 RID: 4695 RVA: 0x00002050 File Offset: 0x00000250
|
|
[Token(Token = "0x6001257")]
|
|
[Address(RVA = "0x222A750", Offset = "0x2229550", VA = "0x18222A750")]
|
|
private static FormatException CreateFormatException()
|
|
{
|
|
return null;
|
|
}
|
|
|
|
// Token: 0x04000AD5 RID: 2773
|
|
[FieldOffset(Offset = "0x10")]
|
|
[Token(Token = "0x4000AD5")]
|
|
private string address;
|
|
|
|
// Token: 0x04000AD6 RID: 2774
|
|
[FieldOffset(Offset = "0x18")]
|
|
[Token(Token = "0x4000AD6")]
|
|
private string displayName;
|
|
|
|
// Token: 0x04000AD7 RID: 2775
|
|
[FieldOffset(Offset = "0x20")]
|
|
[Token(Token = "0x4000AD7")]
|
|
private string host;
|
|
|
|
// Token: 0x04000AD8 RID: 2776
|
|
[FieldOffset(Offset = "0x28")]
|
|
[Token(Token = "0x4000AD8")]
|
|
private string user;
|
|
|
|
// Token: 0x04000AD9 RID: 2777
|
|
[FieldOffset(Offset = "0x30")]
|
|
[Token(Token = "0x4000AD9")]
|
|
private string to_string;
|
|
}
|
|
}
|