Show / Hide Table of Contents

Class IconExtensions

Provides extensions methods related to Icons.

Inheritance
Object
IconExtensions
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 null if no matching icon was found.

In This Article
Back to top Copyright Bastian Eicher et al