NetSerializer.RegisterCustomType(T) Method

LiteNetLib

NetSerializerRegisterCustomTypeT Method

LiteNetLib
Register custom property type

Namespace:  LiteNetLib.Utils
Assembly:  LiteNetLib (in LiteNetLib.dll) Version: 1.0.0.0
Syntax

C#
public bool RegisterCustomType<T>()
where T : struct, new(), INetSerializable

Type Parameters

T
INetSerializable structure

Return Value

Type: Boolean
True - if register successful, false - if type already registered
See Also

Reference