Show / Hide Table of Contents

Class ElementCollectionExtensions

Provides extension methods for Element collections.

Inheritance
Object
ElementCollectionExtensions
Namespace: ZeroInstall.Model
Assembly: ZeroInstall.Model.dll
Syntax
public static class ElementCollectionExtensions : Object

Methods

GetImplementations(IReadOnlyCollection<Element>)

Returns a flat list of all Implementations.

Declaration
public static IEnumerable<Implementation> GetImplementations(this IReadOnlyCollection<Element> elements)
Parameters
Type Name Description
IReadOnlyCollection<Element> elements
Returns
Type Description
IEnumerable<Implementation>

RemoveImplementation(ICollection<Element>, String)

Removes an Implementation identified by its ID.

Declaration
public static bool RemoveImplementation(this ICollection<Element> elements, string id)
Parameters
Type Name Description
ICollection<Element> elements
String id
Returns
Type Description
Boolean

true if the implementation was removed; false if the implementation could not be found.

In This Article
Back to top Copyright Bastian Eicher et al