Terraria v1.4.4.9
Terraria source code documentation
Loading...
Searching...
No Matches

◆ Message() [2/3]

System.Net.Mail.Message.Message ( string from,
string to )
inlinepackage

Definition at line 236 of file Message.cs.

237 : this()
238 {
239 if (from == null)
240 {
241 throw new ArgumentNullException("from");
242 }
243 if (to == null)
244 {
245 throw new ArgumentNullException("to");
246 }
247 if (from.Length == 0)
248 {
249 throw new ArgumentException(System.SR.Format(System.SR.net_emptystringcall, "from"), "from");
250 }
251 if (to.Length == 0)
252 {
254 }
255 _from = new MailAddress(from);
256 _to = new MailAddressCollection { to };
257 }
MailAddressCollection _to
Definition Message.cs:31
MailAddress _from
Definition Message.cs:23
static string Format(string resourceFormat, object p1)
Definition SR.cs:118
static string net_emptystringcall
Definition SR.cs:14
Definition SR.cs:7

References System.Net.Mail.Message._from, System.Net.Mail.Message._to, System.SR.Format(), and System.SR.net_emptystringcall.