I have code where this is declared:
public IDictionary<string, OPTIONS> dict_Options = new Dictionary<string, OPTIONS>();
public class OPTIONS
{
public string subjectId = string.Empty;
public string varNumber = string.Empty;
public string varName = string.Empty;
}
What’s the easiest way to iterate over all the varNames in my dictionary object? Is there like a foreach?
This iterates through all the
KeyValuePair<T, T>in your dictionary