Zero Install .NET API 2.20.0
ZeroInstall.Model.IconExtensions Class Reference

Provides extensions methods related to Icons. More...

Static Public Member Functions

static ? Icon GetIcon (this IEnumerable< Icon > icons, string mimeType)
 Returns an icon with a specific mime type if available. More...
 

Detailed Description

Provides extensions methods related to Icons.

Member Function Documentation

◆ GetIcon()

static ? Icon ZeroInstall.Model.IconExtensions.GetIcon ( this IEnumerable< Icon icons,
string  mimeType 
)
static

Returns an icon with a specific mime type if available.

Parameters
iconsThe list of icons to search
mimeTypeThe Icon.MimeType to try to find. Will only return exact matches.
Returns
The first matching icon that was found or null if no matching icon was found.

The documentation for this class was generated from the following file: