NetSerializer.RegisterCustomType(T) Method (Func(T))

LiteNetLib

NetSerializerRegisterCustomTypeT Method (FuncT)

LiteNetLib
Register custom property type

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

C#
public bool RegisterCustomType<T>(
	Func<T> constructor
)
where T : class, INetSerializable

Parameters

constructor
Type: SystemFuncT

[Missing <param name="constructor"/> documentation for "M:LiteNetLib.Utils.NetSerializer.RegisterCustomType``1(System.Func{``0})"]

Type Parameters

T
INetSerializable class

Return Value

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

Reference