IComponentHost Interface
Definition
Section titled “Definition”Provides a collection of IComponent objects.
public interface IComponentHostProperties
Section titled “Properties”SadComponents
Section titled “SadComponents”A collection of components processed by this console.
ObservableCollection<IComponent> SadComponents { get; }Methods
Section titled “Methods”GetSadComponent<TComponent>()
Section titled “GetSadComponent<TComponent>()”Gets the first component of the specified type.
TComponent? GetSadComponent<TComponent>() where TComponent : class, IComponentReturns
Section titled “Returns”TComponent
The component if found, otherwise null.
GetSadComponents<TComponent>()
Section titled “GetSadComponents<TComponent>()”Gets components of the specified types.
IEnumerable<TComponent> GetSadComponents<TComponent>() where TComponent : class, IComponentReturns
Section titled “Returns”IEnumerable<TComponent>
The components found.
HasSadComponent<TComponent>(out TComponent?)
Section titled “HasSadComponent<TComponent>(out TComponent?)”Indicates whether or not the component exists in the SadComponents collection.
bool HasSadComponent<TComponent>(out TComponent? component) where TComponent : class, IComponentParameters
Section titled “Parameters”component TComponent
Returns
Section titled “Returns”bool
true when the component exists; otherwise false.
CompareComponent(IComponent, IComponent)
Section titled “CompareComponent(IComponent, IComponent)”Uses the SortOrder to compare the left component with the right component.
public static int CompareComponent(IComponent left, IComponent right)Parameters
Section titled “Parameters”left IComponent
The first component to compare.
right IComponent
The second component to compare.
Returns
Section titled “Returns”`1`when the `left` sort order is greater than `right`;
`-1`when `left` is less than `right`;
`0`when they are equal.