Class UnitPortCollection<TPort>
Inheritance
UnitPortCollection<TPort>
Syntax
public sealed class UnitPortCollection<TPort> : KeyedCollection<string, TPort>, IList<TPort>, IList, ICollection, IUnitPortCollection<TPort>, IKeyedCollection<string, TPort>, ICollection<TPort>, IEnumerable<TPort>, IEnumerable 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()
Overrides
System.Collections.ObjectModel.KeyedCollection<System.String, TPort>.ClearItems()
GetKeyForItem(TPort)
Declaration
protected override string GetKeyForItem(TPort item)
Parameters
Type |
Name |
Description |
TPort |
item |
|
Returns
Overrides
System.Collections.ObjectModel.KeyedCollection<System.String, TPort>.GetKeyForItem(TPort)
InsertItem(Int32, TPort)
Declaration
protected override void InsertItem(int index, TPort item)
Parameters
Type |
Name |
Description |
Int32 |
index |
|
TPort |
item |
|
Overrides
System.Collections.ObjectModel.KeyedCollection<System.String, TPort>.InsertItem(System.Int32, TPort)
RemoveItem(Int32)
Declaration
protected override void RemoveItem(int index)
Parameters
Type |
Name |
Description |
Int32 |
index |
|
Overrides
System.Collections.ObjectModel.KeyedCollection<System.String, TPort>.RemoveItem(System.Int32)
SetItem(Int32, TPort)
Declaration
protected override void SetItem(int index, TPort item)
Parameters
Type |
Name |
Description |
Int32 |
index |
|
TPort |
item |
|
Overrides
System.Collections.ObjectModel.KeyedCollection<System.String, TPort>.SetItem(System.Int32, TPort)
Single()
Declaration
Returns
Implements
TryGetValue(String, out TPort)
Declaration
public bool TryGetValue(string key, out TPort value)
Parameters
Type |
Name |
Description |
String |
key |
|
TPort |
value |
|
Returns
Implements
Extension Methods