Answers for "c# set a dictionary to a dictionary"

C#
0

c# object to dictionary

public static Dictionary<string, TValue> ToDictionary<TValue>(object obj)
{       
    var json = JsonConvert.SerializeObject(obj);
    var dictionary = JsonConvert.DeserializeObject<Dictionary<string, TValue>>(json);   
    return dictionary;
}
Posted by: Guest on November-10-2021
0

c# dictionary key set

List<string> keyList = new List<string>(this.yourDictionary.Keys);
Posted by: Guest on September-03-2021

Code answers related to "c# set a dictionary to a dictionary"

C# Answers by Framework

Browse Popular Code Answers by Language