NetDataReaderGetT(FuncT) Method |
Deserializes a
class that implements
INetSerializable using a provided constructor.
Namespace: LiteNetLib.UtilsAssembly: NeoAxis.Core (in NeoAxis.Core.dll) Version: 2026.2.1.0 (2026.2.1.0)
Syntaxpublic 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
TA new instance of
T.
See Also