Microsoft.Azure.Commands.HDInsight.NewAzureHDInsightClusterCommand.HashtableToDictionary C# (CSharp) Method

HashtableToDictionary() private static method

private static HashtableToDictionary ( Hashtable table ) : string>.Dictionary
table System.Collections.Hashtable
return string>.Dictionary
        private static Dictionary<string, string> HashtableToDictionary(Hashtable table)
        {
            return table
              .Cast<DictionaryEntry>()
              .ToDictionary(kvp => (string)kvp.Key, kvp => (string)kvp.Value);
        }