fullserializer icon indicating copy to clipboard operation
fullserializer copied to clipboard

Member variables not serialized if class derives from List<T>

Open NathanosaurusRex opened this issue 9 years ago • 2 comments

Hi,

I have a class that derives from List<T> and none of the member variables are being serialized. I switched it to implements IEnumerable<T> and the same thing happens. If I remove the interface from the class then everything gets serialized as expected.

Any idea what's going on here?

Thanks for all your great work, Nathan

NathanosaurusRex avatar Dec 07 '16 11:12 NathanosaurusRex

Are you using the System.Serializable attribute in your class?

SugoiDev avatar Dec 07 '16 14:12 SugoiDev

I'm not, no, should I be?

NathanosaurusRex avatar Dec 07 '16 20:12 NathanosaurusRex