Class IconExtensions
Provides extensions methods related to Icons.
Namespace: ZeroInstall.Model
Assembly: ZeroInstall.Model.dll
Syntax
public static class IconExtensions : Object
Methods
GetIcon(IEnumerable<Icon>, String)
Returns an icon with a specific mime type if available.
Declaration
public static Icon GetIcon(this IEnumerable<Icon> icons, string mimeType)
Parameters
Type | Name | Description |
---|---|---|
IEnumerable<Icon> | icons | The list of icons to search |
String | mimeType | The MimeType to try to find. Will only return exact matches. |
Returns
Type | Description |
---|---|
Icon | The first matching icon that was found or |