Struct BencodeList
A list of positions for a BencodeReader or BencodeSpanReader.
Inherited Members
System.ValueType.Equals(System.Object)
System.ValueType.GetHashCode()
System.ValueType.ToString()
System.Object.Equals(System.Object, System.Object)
System.Object.GetType()
System.Object.ReferenceEquals(System.Object, System.Object)
Namespace: ItsyBitsy.Bencoding
Assembly: ItsyBitsy.Bencoding.dll
Syntax
public struct BencodeList
Properties
| Improve this Doc View SourceCount
Gets the number of elements in the list.
Declaration
public int Count { get; }
Property Value
| Type | Description |
|---|---|
| System.Int32 |
Item[Int32]
Gets the position at the specified index.
Declaration
public int this[int index] { get; }
Parameters
| Type | Name | Description |
|---|---|---|
| System.Int32 | index | The index of the position. |
Property Value
| Type | Description |
|---|---|
| System.Int32 | The position at the specified index. |
Exceptions
| Type | Condition |
|---|---|
| System.ArgumentOutOfRangeException | index is negative or
greater than or equal to Count. |
Methods
| Improve this Doc View SourceGetEnumerator()
Gets an enumerator for the elements of the list.
Declaration
public BencodeList.Enumerator GetEnumerator()
Returns
| Type | Description |
|---|---|
| BencodeList.Enumerator | The enumerator. |