Class ElementCollectionExtensions
Provides extension methods for Element collections.
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 |
|