ENet Class Library for C#

Packet.Item Property

Gets or sets the byte at the specified index.

[Visual Basic]
Public NotOverridable Property Item( _
   ByVal index As Integer _
) _
    Implements IList<byte>.Item
 As Byte _
    Implements IList<byte>.Item

   Public Get
   End Get
   Public Set
   End Set
End Property
[C#]
public byte this[
   int index
] { public get; public set; }

Parameters

index
The index of the byte.

Implements

IList<byte>.Item

Exceptions

Exception Type Condition
ArgumentOutOfRangeException index is out of range.
InvalidOperationException The packet is not initialized.

See Also

Packet Class | ENet Namespace