3 writes to _type
System.Net.Mail (3)
System\Net\Mime\ContentType.cs (3)
51
_type
= contentType;
143
_type
= contentType;
164
_type
= Encode(false); // Legacy wire-safe format
16 references to _type
System.Net.Mail (16)
System\Net\Mime\ContentType.cs (16)
162
if (
_type
== null || IsChanged)
169
return
_type
;
225
_mediaType = MailBnfHelper.ReadToken(
_type
, ref offset);
226
if (string.IsNullOrEmpty(_mediaType) || offset >=
_type
.Length ||
_type
[offset++] != '/')
231
_subType = MailBnfHelper.ReadToken(
_type
, ref offset);
237
while (MailBnfHelper.SkipCFWS(
_type
, ref offset))
239
if (
_type
[offset++] != ';')
244
if (!MailBnfHelper.SkipCFWS(
_type
, ref offset))
249
string? paramAttribute = MailBnfHelper.ReadParameterAttribute(
_type
, ref offset);
257
if (offset >=
_type
.Length ||
_type
[offset++] != '=')
262
if (!MailBnfHelper.SkipCFWS(
_type
, ref offset))
267
paramValue =
_type
[offset] == '"' ?
268
MailBnfHelper.ReadQuotedString(
_type
, ref offset, null) :
269
MailBnfHelper.ReadToken(
_type
, ref offset);