Die Methode "ToDictionary" der C#-Klasse System.Collections.Dictionary ermöglicht es, ein Dictionary-Objekt aus den Elementen einer vorhandenen Auflistung zu erstellen. Diese Methode akzeptiert eine Funktion als Parameter, die einen Schlüssel für jedes Element der Auflistung zurückgibt, und eine weitere Funktion, die den Wert für jedes Element zurückgibt. Das zurückgegebene Dictionary enthält dann die Schlüssel-Wert-Paare, die auf diese Weise generiert wurden.
C# (CSharp) System.Collections Dictionary.ToDictionary - 21 Beispiele gefunden. Dies sind die am besten bewerteten C# (CSharp) Beispiele für die System.Collections.Dictionary.ToDictionary, die aus Open Source-Projekten extrahiert wurden. Sie können Beispiele bewerten, um die Qualität der Beispiele zu verbessern.