Suppose you’re developing an application which stores a user’s browser history. Explain which collection class will help to retrieve information of the last visited page?
Dictionary is the best collection to store pairs of values like page identifier and array of information(as example). Represents a collection of keys and values. it's easy to find needed information by key that related for some page. https://docs.microsoft.com/en-us/dotnet/api/system.collections.generic.dictionary-2?view=net-6.0
Comments
Leave a comment