How to get dictionary field type if you only have the name of the dictionary?
I’m doing this for int, string etc.
Type v = typeof(tables_script);
FieldInfo info = v.GetField(nameofitem);
I can check typeof on info.FieldType if nameofitem is int, string or whatever, and all is okay.
But if nameofitem is a dictionary, it doesn’t work for Dictionary. I just get nulls. My dictionaries are <string, object>. Is there something else I should be doing for dictionary?
New contributor
JimBob is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.