ConditionalWeakTable<TKey,TValue> Konstruktor

Definition

Initierar en ny instans av ConditionalWeakTable<TKey,TValue> klassen.

public:
 ConditionalWeakTable();
public ConditionalWeakTable();
Public Sub New ()

Kommentarer

Konstruktorn ConditionalWeakTable<TKey,TValue> instansierar en tom ConditionalWeakTable<TKey,TValue> tabell, dvs. tabellen innehåller inga nyckel/värde-par. Du kan lägga till nyckel/värde-par genom att anropa Addmetoden , GetValueeller GetOrCreateValue .

Varje nyckel i ett ConditionalWeakTable<TKey,TValue> objekt måste vara unik. Nycklar är inte unika om de refererar till samma objekt (om de skickas som argument till Object.ReferenceEquals metoden returneras true).

Gäller för