[C# - Networking] Sending Lists over Networking using MessageBase?

Hey fellow coders,

When I first started Networking I remember getting several errors when attempting to send Lists via a message base. The only way I could fix those errors were simply putting in arrays and having each part of the list loaded into arrays.

Since arrays are expensive to resize and such: is there any quick fixes to send a list over a messagebase?

Thanks,
Rotavele

Most of the networking stuff doesn’t support any level of generic arguments. There’s a lot of serialization and code generation that happens under the sheets that seems to trip up on generics. The only solution (right now anyway) seems to be to dump your list to an array before sending it over the wire.

Thank you Kelso!

I was looking into this problem as well, Rotavele, and while I did also end up with converting lists to arrays and back again, there was a suggestion made somewhere to set up your own message serializer and deserializer if you wanted to avoid list/array conversion.