Class IconExtensions
- Namespace
- ZeroInstall.Model
- Assembly
- ZeroInstall.Model.dll
Provides extensions methods related to Icons.
public static class IconExtensions
- Inheritance
-
IconExtensions
- Inherited Members
Methods
GetIcon(IEnumerable<Icon>, string)
Returns an icon with a specific mime type if available.
public static Icon? GetIcon(this IEnumerable<Icon> icons, string mimeType)
Parameters
icons
IEnumerable<Icon>The list of icons to search
mimeType
stringThe MimeType to try to find. Will only return exact matches.
Returns
- Icon
The first matching icon that was found or
null
if no matching icon was found.