Name
ListDictionary
Synopsis
This class is a simple implementation of a dictionary collection
(System.Collections.IDictionary
) for small
lists. It implements the IDictionary
methods and
properties, and it
is suggested for use with a small number of elements (less than 10). The
overloaded constructor can optionally pass an System.Collections.IComparer
reference, which may be used for case-insensitive key comparison or other special key
type conversions.
Public Class ListDictionary : Implements IDictionary, ICollection, IEnumerable ' Public Constructors Public Sub New() Public Sub New( ByVal comparer As System.Collections.IComparer) ' Public Instance Properties Public ReadOnly Property Count As Integer Implements ICollection.Count Public ReadOnly Property IsFixedSize As Boolean Implements IDictionary.IsFixedSize Public ReadOnly Property IsReadOnly As Boolean Implements IDictionary.IsReadOnly Public ReadOnly Property IsSynchronized As Boolean Implements ICollection.IsSynchronized Public Default Property Item( ByVal key As Object) As Object Implements IDictionary.Item Public ReadOnly Property Keys As ICollection Implements IDictionary.Keys Public ReadOnly Property SyncRoot As Object Implements ICollection.SyncRoot Public ReadOnly Property Values As ICollection Implements IDictionary.Values ' Public Instance Methods Public Sub Add(ByVal key As Object, ByVal value As Object) Implements IDictionary.Add Public Sub Clear() Implements IDictionary.Clear Public Function Contains( ByVal key As ...
Get VB.NET Core Classes in a Nutshell now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.