Supporting ReadOnlyCollection

Discussion and help for Easy Save 3
Post Reply
robotSmith
Posts: 39
Joined: Thu Apr 01, 2021 4:53 pm

Supporting ReadOnlyCollection

Post by robotSmith »

Hello Hello,

(first sorry for the three different posts, but I wanted to keep things separated)

I wanted to know if you had plans on adding ReadOnlyCollection<T> as a supported type? I could not find a way of adding it myself to the ES3Types so is there a workaround that I can make it work (other than using Lists)?

TIA!
User avatar
Joel
Moodkie Staff
Posts: 4846
Joined: Wed Nov 07, 2012 10:32 pm

Re: Supporting ReadOnlyCollection

Post by Joel »

I'm afraid that because of the very nature of ReadOnlyCollection being read-only, it's not serializable at runtime. You would need to convert it to a List and save to and from this.

All the best,
Joel
Joel @ Moodkie Interactive
Purchase Easy Save | Contact | Guides | Docs | Getting started
robotSmith
Posts: 39
Joined: Thu Apr 01, 2021 4:53 pm

Re: Supporting ReadOnlyCollection

Post by robotSmith »

ah I see. That's actually an easy work around. Thanks for your help as always Joel!
Post Reply