ENet Class Library for C#

Packet.Contains Method

Checks if the packet contains a particular byte.

[Visual Basic]
Public NotOverridable Sub Contains( _
   ByVal value As Byte _
) _
    Implements ICollection<byte>.Contains
[C#]
public bool Contains(
   byte value
);

Parameters

value
The value to look for.

Return Value

True if the packet contains the byte.

Implements

ICollection<byte>.Contains

Exceptions

Exception Type Condition
InvalidOperationException The packet is not initialized.

See Also

Packet Class | ENet Namespace