Definition at line 119 of file SmtpDateTime.cs.
120 {
121 if (string.IsNullOrEmpty(data))
122 {
124 }
125 int num = data.IndexOf(':');
126 if (num == -1)
127 {
129 }
132 {
134 }
135 string s = data.AsSpan(0,
num2).Trim().ToString();
137 {
139 }
140 string text = data.AsSpan(
num2).Trim().ToString();
143 {
145 }
146 if (
string.IsNullOrEmpty(
text))
147 {
149 }
151 return result;
152 }
static CultureInfo InvariantCulture
static readonly char[] s_allowedWhiteSpaceChars
static readonly string[] s_validDateTimeFormats
static string Format(string resourceFormat, object p1)
static string MailDateInvalidFormat
static string MailHeaderFieldInvalidCharacter
References System.SR.Format(), System.Globalization.CultureInfo.InvariantCulture, System.SR.MailDateInvalidFormat, System.SR.MailHeaderFieldInvalidCharacter, System.s, System.Net.Mime.SmtpDateTime.s_allowedWhiteSpaceChars, System.Net.Mime.SmtpDateTime.s_validDateTimeFormats, System.text, and System.DateTime.TryParseExact().
Referenced by System.Net.Mime.SmtpDateTime.SmtpDateTime().