Class UnitPortCollection<TPort>
Implements
IList<TPort>
IReadOnlyList<TPort>
IReadOnlyCollection<TPort>
IUnitPortCollection<TPort>
IKeyedCollection<string, TPort>
ICollection<TPort>
IEnumerable<TPort>
Inherited Members
Namespace: Unity.VisualScripting
Assembly: Unity.VisualScripting.Flow.dll
Syntax
public sealed class UnitPortCollection<TPort> : KeyedCollection<string, TPort>, IList<TPort>, IReadOnlyList<TPort>, IReadOnlyCollection<TPort>, IList, ICollection, IUnitPortCollection<TPort>, IKeyedCollection<string, TPort>, ICollection<TPort>, IEnumerable<TPort>, IEnumerable where TPort : IUnitPort
Type Parameters
Name | Description |
---|---|
TPort |
Constructors
UnitPortCollection(IUnit)
Declaration
public UnitPortCollection(IUnit unit)
Parameters
Type | Name | Description |
---|---|---|
IUnit | unit |
Properties
unit
Declaration
public IUnit unit { get; }
Property Value
Type | Description |
---|---|
IUnit |
Methods
ClearItems()
Declaration
protected override void ClearItems()
Overrides
GetKeyForItem(TPort)
Declaration
protected override string GetKeyForItem(TPort item)
Parameters
Type | Name | Description |
---|---|---|
TPort | item |
Returns
Type | Description |
---|---|
string |
Overrides
InsertItem(int, TPort)
Declaration
protected override void InsertItem(int index, TPort item)
Parameters
Type | Name | Description |
---|---|---|
int | index | |
TPort | item |
Overrides
RemoveItem(int)
Declaration
protected override void RemoveItem(int index)
Parameters
Type | Name | Description |
---|---|---|
int | index |
Overrides
SetItem(int, TPort)
Declaration
protected override void SetItem(int index, TPort item)
Parameters
Type | Name | Description |
---|---|---|
int | index | |
TPort | item |
Overrides
Single()
Declaration
public TPort Single()
Returns
Type | Description |
---|---|
TPort |
TryGetValue(string, out TPort)
Declaration
public bool TryGetValue(string key, out TPort value)
Parameters
Type | Name | Description |
---|---|---|
string | key | |
TPort | value |
Returns
Type | Description |
---|---|
bool |