Class PortList<T>
Namespace: Mechatronics.SystemGraph
Syntax
[Serializable]
public class PortList<T> : IList<T>, ICollection<T>, IEnumerable<T>, IList, ICollection, IEnumerable
Type Parameters
| Name | Description |
|---|---|
| T |
Properties
Count
Gets the count.
Declaration
public int Count { get; }
Property Value
| Type | Description |
|---|---|
| Int32 | The count. |
IsFixedSize
Gets a value indicating whether this instance is fixed size.
Declaration
public bool IsFixedSize { get; }
Property Value
| Type | Description |
|---|---|
| Boolean |
|
IsReadOnly
Gets a value indicating whether this instance is read only.
Declaration
public bool IsReadOnly { get; }
Property Value
| Type | Description |
|---|---|
| Boolean |
|
IsSynchronized
Gets a value indicating whether this instance is synchronized.
Declaration
public bool IsSynchronized { get; }
Property Value
| Type | Description |
|---|---|
| Boolean |
|
Item[Int32]
Gets or sets the value at index.
Declaration
public T this[int index] { get; set; }
Parameters
| Type | Name | Description |
|---|---|---|
| Int32 | index | The index. |
Property Value
| Type | Description |
|---|---|
| T | Return the value at index. |
SyncRoot
Gets the synchronize root.
Declaration
public object SyncRoot { get; }
Property Value
| Type | Description |
|---|---|
| Object | The synchronize root. |
Methods
Add(T)
Adds the specified item.
Declaration
public void Add(T item)
Parameters
| Type | Name | Description |
|---|---|---|
| T | item | The item. |
Clear()
Clears this instance.
Declaration
public void Clear()
Contains(T)
Determines whether this instance contains the object.
Declaration
public bool Contains(T item)
Parameters
| Type | Name | Description |
|---|---|---|
| T | item | The item. |
Returns
| Type | Description |
|---|---|
| Boolean |
|
CopyTo(T[], Int32)
Copies to.
Declaration
public void CopyTo(T[] array, int arrayIndex)
Parameters
| Type | Name | Description |
|---|---|---|
| T[] | array | The array. |
| Int32 | arrayIndex | Index of the array. |
Exceptions
| Type | Condition |
|---|---|
| NotSupportedException |
GetEnumerator()
Gets the enumerator.
Declaration
public IEnumerator<T> GetEnumerator()
Returns
| Type | Description |
|---|---|
| IEnumerator<T> | IEnumerator<T>. |
IndexOf(T)
Returns the index of an item.
Declaration
public int IndexOf(T item)
Parameters
| Type | Name | Description |
|---|---|---|
| T | item | The item. |
Returns
| Type | Description |
|---|---|
| Int32 | Index in the list. |
Insert(Int32, T)
Inserts the specified index.
Declaration
public void Insert(int index, T item)
Parameters
| Type | Name | Description |
|---|---|---|
| Int32 | index | The index. |
| T | item | The item. |
Remove(T)
Removes the specified item.
Declaration
public bool Remove(T item)
Parameters
| Type | Name | Description |
|---|---|---|
| T | item | The item. |
Returns
| Type | Description |
|---|---|
| Boolean |
|
RemoveAt(Int32)
Removes at.
Declaration
public void RemoveAt(int index)
Parameters
| Type | Name | Description |
|---|---|---|
| Int32 | index | The index. |