5 writes to _contentType
System.Net.Mail (5)
System\Net\Mime\MimeBasePart.cs (3)
156
_contentType
??= new ContentType();
167
get { return
_contentType
??= new ContentType(); }
172
_contentType
= value;
System\Net\Mime\MimePart.cs (2)
125
_contentType
= new ContentType(mimeType);
138
_contentType
= contentType;
4 references to _contentType
System.Net.Mail (4)
System\Net\Mime\MimeBasePart.cs (4)
157
_contentType
.PersistIfNeeded(_headers, false);
173
_contentType
.PersistIfNeeded((HeaderCollection)Headers, true);
179
_contentType
!.PersistIfNeeded((HeaderCollection)Headers, false);
180
_headers!.InternalSet(MailHeaderInfo.GetString(MailHeaderID.ContentType)!,
_contentType
.Encode(allowUnicode));