PART II
C h a p t e r 2 4 :
C o l l e c t i o n s , E n u m e r a t o r s , a n d I t e r a t o r s
765
The public properties available in
SortedList
are those defined by the interfaces that it
implements. As is the case with
Hashtable
, two especially important properties are
Keys
and
Values
because they let you obtain a read-only collection of a
SortedList
’s keys or
values. They are specified by
IDictionary
and are shown here:
public virtual ICollection Keys { get; }
public virtual ICollection Values { get; }
The order of the keys and values reflects that of the
SortedList
.
Like
Hashtable
, a
SortedList
stores key/value pairs in the form of a
Do'stlaringiz bilan baham: |