csharp-ovh icon indicating copy to clipboard operation
csharp-ovh copied to clipboard

Replace the endpoints Dictionary with a IReadOnlyDictionary

Open julesrx opened this issue 2 years ago • 0 comments

Change the endpoints type from Dictionary with a IReadOnlyDictionary to prevent accidental insertions or updates. Note that I didn't choose to use the ReadOnlyDictionary type since the default dictionary type already implements the IReadOnlyDictionary interface, this would have added a new import, and it is slower and heavier to create and heavier.

julesrx avatar Aug 18 '23 15:08 julesrx