Click or drag to resize

NetDataReaderGetT(T, 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 void Get<T>(
	out T result,
	Func<T> constructor
)
where T : class, INetSerializable

Parameters

result  T
The deserialized class instance output.
constructor  FuncT
A factory delegate used to instantiate the class.

Type Parameters

T
A class type implementing INetSerializable.
See Also