Class UnitPortCollection<TPort>
Inheritance
object
UnitPortCollection<TPort>
Implements
ICollection<TPort>
Assembly: solution.dll
Syntax
public sealed class UnitPortCollection<TPort> : KeyedCollection<string, TPort>, IUnitPortCollection<TPort>, IKeyedCollection<string, TPort>, ICollection<TPort> where TPort : IUnitPort
Type Parameters
Constructors
UnitPortCollection(IUnit)
Declaration
public UnitPortCollection(IUnit unit)
Parameters
| Type |
Name |
Description |
| IUnit |
unit |
|
Properties
unit
Declaration
public IUnit unit { get; }
Property Value
Methods
ClearItems()
Declaration
protected override void ClearItems()
GetKeyForItem(TPort)
Declaration
protected override string GetKeyForItem(TPort item)
Parameters
| Type |
Name |
Description |
| TPort |
item |
|
Returns
InsertItem(int, TPort)
Declaration
protected override void InsertItem(int index, TPort item)
Parameters
| Type |
Name |
Description |
| int |
index |
|
| TPort |
item |
|
RemoveItem(int)
Declaration
protected override void RemoveItem(int index)
Parameters
| Type |
Name |
Description |
| int |
index |
|
SetItem(int, TPort)
Declaration
protected override void SetItem(int index, TPort item)
Parameters
| Type |
Name |
Description |
| int |
index |
|
| TPort |
item |
|
Single()
Declaration
Returns
TryGetValue(string, out TPort)
Declaration
public bool TryGetValue(string key, out TPort value)
Parameters
| Type |
Name |
Description |
| string |
key |
|
| TPort |
value |
|
Returns
Implements
ICollection<>
Extension Methods