ENet Class Library for C#

Packet.GetEnumerator Method

Returns an enumerator that iterates through the bytes of the packet.

[Visual Basic]
Public NotOverridable Sub GetEnumerator() _
    Implements IEnumerable<byte>.GetEnumerator
[C#]
public IEnumerator<byte> GetEnumerator();

Return Value

An enumerator.

Implements

IEnumerable<byte>.GetEnumerator

Exceptions

Exception Type Condition
InvalidOperationException The packet is not initialized.

See Also

Packet Class | ENet Namespace