Skip to content

Commit 7da7284

Browse files
authored
Add System.Net.Mime.MediaTypeMap (#121776)
Closes #121017
1 parent 8c2b75f commit 7da7284

File tree

5 files changed

+1068
-0
lines changed

5 files changed

+1068
-0
lines changed

src/libraries/System.Net.Mail/ref/System.Net.Mail.cs

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -385,6 +385,13 @@ public static partial class Text
385385
public const string Xml = "text/xml";
386386
}
387387
}
388+
public static partial class MediaTypeMap
389+
{
390+
public static string? GetExtension(System.ReadOnlySpan<char> mediaType) { throw null; }
391+
public static string? GetExtension(string mediaType) { throw null; }
392+
public static string? GetMediaType(System.ReadOnlySpan<char> pathOrExtension) { throw null; }
393+
public static string? GetMediaType(string pathOrExtension) { throw null; }
394+
}
388395
public enum TransferEncoding
389396
{
390397
Unknown = -1,

src/libraries/System.Net.Mail/src/System.Net.Mail.csproj

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,7 @@
3030
<Compile Include="System\Net\Mime\DispositionTypeNames.cs" />
3131
<Compile Include="System\Net\Mime\HeaderCollection.cs" />
3232
<Compile Include="System\Net\Mime\MediaTypeNames.cs" />
33+
<Compile Include="System\Net\Mime\MediaTypeMap.cs" />
3334
<Compile Include="System\Net\Mime\MimeBasePart.cs" />
3435
<Compile Include="System\Net\Mime\SmtpDateTime.cs" />
3536
<Compile Include="System\Net\Mime\ByteEncoder.cs" />

0 commit comments

Comments
 (0)