NetSerializerSerializeT Method (T) |
LiteNetLib |
Serialize struct to byte array
Namespace: LiteNetLib.Utils
Assembly: LiteNetLib (in LiteNetLib.dll) Version: 1.0.0.0
Syntax
C#
public byte[] Serialize<T>( T obj ) where T : class, new()
Parameters
- obj
- Type: T
Struct to serialize
Type Parameters
- T
[Missing <typeparam name="T"/> documentation for "M:LiteNetLib.Utils.NetSerializer.Serialize``1(``0)"]
Return Value
Type: Bytebyte array with serialized data
See Also