Die Methode Model.Dictionary.Add in C# fügt dem Dictionary einen neuen Schlüssel-Werte-Paar hinzu. Der Schlüssel und der Wert werden als Parameter übergeben. Wenn der Schlüssel bereits im Dictionary vorhanden ist, wird eine Ausnahme ausgelöst. Wenn der Schlüssel eindeutig ist, wird das neue Schlüssel-Werte-Paar dem Dictionary hinzugefügt.
C# (CSharp) Model Dictionary.Add - 30 Beispiele gefunden. Dies sind die am besten bewerteten C# (CSharp) Beispiele für die Model.Dictionary.Add, die aus Open Source-Projekten extrahiert wurden. Sie können Beispiele bewerten, um die Qualität der Beispiele zu verbessern.