SolidUtilities icon indicating copy to clipboard operation
SolidUtilities copied to clipboard

feat: SerializableDictionary implements IReadOnlyDictionary<TKey, TValue>

Open afti-githobo opened this issue 1 year ago • 0 comments

I like to use IReadOnlyDictionary types when passing around dictionaries that shouldn't be modified by the code that's receiving them, but SerializableDictionary didn't implement the interface. It was, however, a very minor addition, so I just went ahead and did that.

I... haven't done a lot of open-source contributions in the past, tbh, so I hope I haven't done anything wrong and I'm not stepping on any toes?

Anyway, the code should be pretty self-explanatory; I didn't really have to do much of anything to implement the interface. Just a small quality-of-life improvement for using the collection in certain programming patterns.

afti-githobo avatar Apr 22 '23 00:04 afti-githobo