B-Arts DocumentationIndice generale

BDictionary

Identità

  • Namespace: B.BLists

  • Assembly: BFramework

  • Tipo: class

  • Classe base: Dictionary<TKey, TValue>

  • Interfacce: IDictionary<TKey, TValue>, ICollection<KeyValuePair<TKey, TValue>>, IEnumerable<KeyValuePair<TKey, TValue>>, IEnumerable, IDictionary, ICollection, IReadOnlyDictionary<TKey, TValue>, IReadOnlyCollection<KeyValuePair<TKey, TValue>>, ISerializable, IDeserializationCallback

  • Sorgente API: versione 5.0.0

Scopo

Dizionario B-Arts che mantiene anche l'ordine di inserimento delle chiavi. Consente l'accesso e la rimozione sia per chiave sia per indice e può creare coppie stringa ID/descrizione da sorgenti applicative comuni.

L'indicizzatore per chiave restituisce default quando la chiave non è presente, invece di sollevare KeyNotFoundException. Il tipo non dichiara garanzie di thread safety e offre il solo costruttore senza parametri.

Dichiarazione

public class BDictionary<TKey, TValue> : Dictionary<TKey, TValue>, IDictionary<TKey, TValue>, ICollection<KeyValuePair<TKey, TValue>>, IEnumerable<KeyValuePair<TKey, TValue>>, IEnumerable, IDictionary, ICollection, IReadOnlyDictionary<TKey, TValue>, IReadOnlyCollection<KeyValuePair<TKey, TValue>>, ISerializable, IDeserializationCallback

Costruttori

  • BDictionary2()`

Proprietà

Proprietà Tipo Accesso
Item TValue? get/set
Item TValue? get/set

Metodi

  • void Add(TKey key, TValue? value)

  • void Clear()

  • static BDictionary<string, string> CreateInstanceFromSource(object source, string CampoID, string CampoDescrizione)

  • bool Remove(TKey key)

  • bool Remove(int Index)

  • bool TryAdd(TKey key, TValue? value)

Esempi

Consultare BDictionary - Esempi.