Smdn.Fundamental.MimeType 3.1.0

The ID prefix of this package has been reserved for one of the owners of this package by NuGet.org. Prefix Reserved
There is a newer version of this package available.
See the version list below for details.
dotnet add package Smdn.Fundamental.MimeType --version 3.1.0
NuGet\Install-Package Smdn.Fundamental.MimeType -Version 3.1.0
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="Smdn.Fundamental.MimeType" Version="3.1.0" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add Smdn.Fundamental.MimeType --version 3.1.0
#r "nuget: Smdn.Fundamental.MimeType, 3.1.0"
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
// Install Smdn.Fundamental.MimeType as a Cake Addin
#addin nuget:?package=Smdn.Fundamental.MimeType&version=3.1.0

// Install Smdn.Fundamental.MimeType as a Cake Tool
#tool nuget:?package=Smdn.Fundamental.MimeType&version=3.1.0

Smdn.Fundamental.MimeType

Smdn.Fundamental.MimeType.dll

API List

// Smdn.Fundamental.MimeType.dll (Smdn.Fundamental.MimeType-3.1.0)
//   Name: Smdn.Fundamental.MimeType
//   AssemblyVersion: 3.1.0.0
//   InformationalVersion: 3.1.0+73609d14a9c7ae47c72f6d32f87ad6ebc0a2d166
//   TargetFramework: .NETCoreApp,Version=v6.0
//   Configuration: Release

using System;
using System.Collections.Generic;
using System.Diagnostics.CodeAnalysis;
using System.Runtime.CompilerServices;
using Smdn;

namespace Smdn {
  [Nullable(byte.MinValue)]
  [NullableContext(1)]
  [TypeForwardedFrom("Smdn, Version=3.0.0.0, Culture=neutral, PublicKeyToken=null")]
  public class MimeType :
    IEquatable<MimeType>,
    IEquatable<string>,
    ISpanFormattable
  {
    public static readonly MimeType ApplicationOctetStream; // = "application/octet-stream"
    public static readonly MimeType ApplicationXWwwFormUrlEncoded; // = "application/x-www-form-urlencoded"
    public static readonly MimeType MessageExternalBody; // = "message/external-body"
    public static readonly MimeType MessagePartial; // = "message/partial"
    public static readonly MimeType MessageRfc822; // = "message/rfc822"
    public static readonly MimeType MultipartAlternative; // = "multipart/alternative"
    public static readonly MimeType MultipartDigest; // = "multipart/digest"
    public static readonly MimeType MultipartFormData; // = "multipart/form-data"
    public static readonly MimeType MultipartMixed; // = "multipart/mixed"
    public static readonly MimeType MultipartParallel; // = "multipart/parallel"
    public static readonly MimeType TextHtml; // = "text/html"
    public static readonly MimeType TextPlain; // = "text/plain"
    public static readonly MimeType TextRtf; // = "text/rtf"

    public MimeType([Nullable] (string type, string subType) mimeType) {}
    public MimeType(string mimeType) {}
    public MimeType(string type, string subType) {}

    public bool IsApplication { get; }
    public bool IsApplicationOctetStream { get; }
    public bool IsApplicationXWwwFormUrlEncoded { get; }
    public bool IsAudio { get; }
    public bool IsFont { get; }
    public bool IsImage { get; }
    public bool IsMessage { get; }
    public bool IsMessageExternalBody { get; }
    public bool IsMessagePartial { get; }
    public bool IsMessageRfc822 { get; }
    public bool IsModel { get; }
    public bool IsMultipart { get; }
    public bool IsMultipartAlternative { get; }
    public bool IsMultipartDigest { get; }
    public bool IsMultipartFormData { get; }
    public bool IsMultipartMixed { get; }
    public bool IsMultipartParallel { get; }
    public bool IsText { get; }
    public bool IsTextHtml { get; }
    public bool IsTextPlain { get; }
    public bool IsVideo { get; }
    public string SubType { get; }
    public string Type { get; }

    public static MimeType CreateApplicationType(string subtype) {}
    public static MimeType CreateAudioType(string subtype) {}
    public static MimeType CreateFontType(string subtype) {}
    public static MimeType CreateImageType(string subtype) {}
    public static MimeType CreateModelType(string subtype) {}
    public static MimeType CreateMultipartType(string subtype) {}
    public static MimeType CreateTextType(string subtype) {}
    public static MimeType CreateVideoType(string subtype) {}
    public void Deconstruct(out string type, out string subType) {}
    [Obsolete("Use `Equals(MimeType, StringComparison)` instead. This method will be changed to perform case-insensitive comparison in the future release.")]
    [NullableContext(2)]
    public bool Equals(MimeType other) {}
    [NullableContext(2)]
    public bool Equals(MimeType other, StringComparison comparisonType) {}
    [NullableContext(byte.MinValue)]
    public bool Equals(ReadOnlySpan<char> other, StringComparison comparisonType = StringComparison.OrdinalIgnoreCase) {}
    [Obsolete("Use `Equals(string, StringComparison)` instead. This method will be changed to perform case-insensitive comparison in the future release.")]
    [NullableContext(2)]
    public bool Equals(string other) {}
    [NullableContext(2)]
    public bool Equals(string other, StringComparison comparisonType) {}
    [NullableContext(2)]
    public override bool Equals(object obj) {}
    [Obsolete("Use `Equals(MimeType, StringComparison)` instead.")]
    [NullableContext(2)]
    public bool EqualsIgnoreCase(MimeType other) {}
    [Obsolete("Use `Equals(string, StringComparison)` instead.")]
    [NullableContext(2)]
    public bool EqualsIgnoreCase(string other) {}
    public static IEnumerable<string> FindExtensionsByMimeType(MimeType mimeType) {}
    public static IEnumerable<string> FindExtensionsByMimeType(MimeType mimeType, string mimeTypesFile) {}
    public static IEnumerable<string> FindExtensionsByMimeType(string mimeType) {}
    public static IEnumerable<string> FindExtensionsByMimeType(string mimeType, string mimeTypesFile) {}
    [return: Nullable(2)] public static MimeType FindMimeTypeByExtension(string extensionOrPath) {}
    [return: Nullable(2)] public static MimeType FindMimeTypeByExtension(string extensionOrPath, string mimeTypesFile) {}
    public override int GetHashCode() {}
    [NullableContext(byte.MinValue)]
    [return: Nullable(1)] public static MimeType Parse(ReadOnlySpan<char> s, [Nullable(2)] IFormatProvider provider = null) {}
    [Obsolete("The return type of this method will be changed to MimeType in the future release. Use Smdn.Formats.Mime.MimeTypeStringExtensions.Split() instead.")]
    [return: Nullable] public static (string type, string subType) Parse(string s) {}
    public static MimeType Parse(string s, [Nullable(2)] IFormatProvider provider = null) {}
    [Obsolete("Use `SubTypeEquals(MimeType, StringComparison)` instead. This method will be changed to perform case-insensitive comparison in the future release.")]
    [NullableContext(2)]
    public bool SubTypeEquals(MimeType mimeType) {}
    [NullableContext(2)]
    public bool SubTypeEquals(MimeType mimeType, StringComparison comparisonType) {}
    [NullableContext(byte.MinValue)]
    public bool SubTypeEquals(ReadOnlySpan<char> subType, StringComparison comparisonType = StringComparison.OrdinalIgnoreCase) {}
    [Obsolete("Use `SubTypeEquals(string, StringComparison)` instead. This method will be changed to perform case-insensitive comparison in the future release.")]
    [NullableContext(2)]
    public bool SubTypeEquals(string subType) {}
    [NullableContext(2)]
    public bool SubTypeEquals(string subType, StringComparison comparisonType) {}
    [Obsolete("Use `SubTypeEquals(MimeType, StringComparison)` instead.")]
    [NullableContext(2)]
    public bool SubTypeEqualsIgnoreCase(MimeType mimeType) {}
    [Obsolete("Use `SubTypeEquals(string, StringComparison)` instead.")]
    [NullableContext(2)]
    public bool SubTypeEqualsIgnoreCase(string subType) {}
    [NullableContext(2)]
    [return: Nullable(1)] public string ToString(string format, IFormatProvider formatProvider) {}
    public override string ToString() {}
    [NullableContext(byte.MinValue)]
    public bool TryFormat(Span<char> destination, out int charsWritten, ReadOnlySpan<char> format, [Nullable(2)] IFormatProvider provider) {}
    [NullableContext(byte.MinValue)]
    public static bool TryParse(ReadOnlySpan<char> s, [Nullable(2)] IFormatProvider provider, [Nullable(1)] out MimeType result) {}
    [NullableContext(2)]
    public static bool TryParse(string s, IFormatProvider provider, [NotNullWhen(true)] [Nullable(1)] out MimeType result) {}
    [NullableContext(2)]
    public static bool TryParse(string s, [NotNullWhen(true)] out MimeType result) {}
    [Obsolete("The method will be deprecated in the future release. Use Smdn.Formats.Mime.MimeTypeStringExtensions.TrySplit() instead.")]
    [NullableContext(2)]
    public static bool TryParse(string s, [Nullable] out (string type, string subType) result) {}
    [Obsolete("Use `TypeEquals(MimeType, StringComparison)` instead. This method will be changed to perform case-insensitive comparison in the future release.")]
    [NullableContext(2)]
    public bool TypeEquals(MimeType mimeType) {}
    [NullableContext(2)]
    public bool TypeEquals(MimeType mimeType, StringComparison comparisonType) {}
    [NullableContext(byte.MinValue)]
    public bool TypeEquals(ReadOnlySpan<char> type, StringComparison comparisonType = StringComparison.OrdinalIgnoreCase) {}
    [Obsolete("Use `TypeEquals(string, StringComparison)` instead. This method will be changed to perform case-insensitive comparison in the future release.")]
    [NullableContext(2)]
    public bool TypeEquals(string type) {}
    [NullableContext(2)]
    public bool TypeEquals(string type, StringComparison comparisonType) {}
    [Obsolete("Use `TypeEquals(MimeType, StringComparison)` instead.")]
    [NullableContext(2)]
    public bool TypeEqualsIgnoreCase(MimeType mimeType) {}
    [Obsolete("Use `TypeEquals(string, StringComparison)` instead.")]
    [NullableContext(2)]
    public bool TypeEqualsIgnoreCase(string type) {}
    [NullableContext(2)]
    public static explicit operator string(MimeType mimeType) {}
  }
}

namespace Smdn.Formats.Mime {
  [Nullable(byte.MinValue)]
  [NullableContext(2)]
  public static class MimeTypeStringExtensions {
    [return: Nullable] public static (string Type, string SubType) Split(string mimeType) {}
    public static bool TrySplit(string mimeType, [Nullable] out (string Type, string SubType) result) {}
  }
}
Product Compatible and additional computed target framework versions.
.NET net5.0 was computed.  net5.0-windows was computed.  net6.0 is compatible.  net6.0-android was computed.  net6.0-ios was computed.  net6.0-maccatalyst was computed.  net6.0-macos was computed.  net6.0-tvos was computed.  net6.0-windows was computed.  net7.0 was computed.  net7.0-android was computed.  net7.0-ios was computed.  net7.0-maccatalyst was computed.  net7.0-macos was computed.  net7.0-tvos was computed.  net7.0-windows was computed.  net8.0 was computed.  net8.0-android was computed.  net8.0-browser was computed.  net8.0-ios was computed.  net8.0-maccatalyst was computed.  net8.0-macos was computed.  net8.0-tvos was computed.  net8.0-windows was computed. 
.NET Core netcoreapp1.0 was computed.  netcoreapp1.1 was computed.  netcoreapp2.0 was computed.  netcoreapp2.1 was computed.  netcoreapp2.2 was computed.  netcoreapp3.0 was computed.  netcoreapp3.1 was computed. 
.NET Standard netstandard1.3 is compatible.  netstandard1.4 was computed.  netstandard1.5 was computed.  netstandard1.6 is compatible.  netstandard2.0 is compatible.  netstandard2.1 is compatible. 
.NET Framework net45 is compatible.  net451 was computed.  net452 was computed.  net46 was computed.  net461 was computed.  net462 was computed.  net463 was computed.  net47 was computed.  net471 is compatible.  net472 was computed.  net48 was computed.  net481 was computed. 
MonoAndroid monoandroid was computed. 
MonoMac monomac was computed. 
MonoTouch monotouch was computed. 
Tizen tizen30 was computed.  tizen40 was computed.  tizen60 was computed. 
Universal Windows Platform uap was computed.  uap10.0 was computed. 
Xamarin.iOS xamarinios was computed. 
Xamarin.Mac xamarinmac was computed. 
Xamarin.TVOS xamarintvos was computed. 
Xamarin.WatchOS xamarinwatchos was computed. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

NuGet packages (1)

Showing the top 1 NuGet packages that depend on Smdn.Fundamental.MimeType:

Package Downloads
Smdn The ID prefix of this package has been reserved for one of the owners of this package by NuGet.org.

Smdn.dll, fundamental utility and extension library

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last updated
4.0.1 163 12/30/2023
4.0.0 212 12/29/2023
3.2.0 143 12/28/2023
3.1.0 607 4/25/2022
3.0.2 388 3/5/2022
3.0.1 252 12/12/2021
3.0.0 1,852 8/20/2021