Class ElementCollectionExtensions
- Namespace
- ZeroInstall.Model
- Assembly
- ZeroInstall.Model.dll
Provides extension methods for Element collections.
public static class ElementCollectionExtensions
- Inheritance
-
ElementCollectionExtensions
- Inherited Members
Methods
GetImplementations(IReadOnlyCollection<Element>)
Returns a flat list of all Implementations.
public static IEnumerable<Implementation> GetImplementations(this IReadOnlyCollection<Element> elements)
Parameters
elements
IReadOnlyCollection<Element>
Returns
RemoveImplementation(ICollection<Element>, string)
Removes an Implementation identified by its ID.
public static bool RemoveImplementation(this ICollection<Element> elements, string id)
Parameters
elements
ICollection<Element>id
string
Returns
- bool
true
if the implementation was removed;false
if the implementation could not be found.