Click or drag to resize

NetDataReaderGetT(FuncT) Method

Deserializes a class that implements INetSerializable using a provided constructor.

Namespace: LiteNetLib.Utils
Assembly: NeoAxis.Core (in NeoAxis.Core.dll) Version: 2026.2.1.0 (2026.2.1.0)
Syntax
C#
public T Get<T>(
	Func<T> constructor
)
where T : class, INetSerializable

Parameters

constructor  FuncT
The factory delegate used to instantiate the class.

Type Parameters

T
A class type implementing INetSerializable.

Return Value

T
A new instance of T.
See Also