Click or drag to resize

NetSerializerDeserializeT(NetDataReader) Method

Reads packet with known type

Namespace: LiteNetLib.Utils
Assembly: NeoAxis.Core (in NeoAxis.Core.dll) Version: 2026.2.1.0 (2026.2.1.0)
Syntax
C#
public T Deserialize<T>(
	NetDataReader reader
)
where T : class, new()

Parameters

reader  NetDataReader
NetDataReader with packet

Type Parameters

T

Return Value

T
Returns packet if packet in reader is matched type
Exceptions
ExceptionCondition
InvalidTypeExceptionT's fields are not supported, or it has no fields
See Also