I have iterated
foreach (var tmp_variable in all_subdirectories)
{
MessageBox.Show(tmp_variable["Name"]);
}
I want to print the Name inside tmp_variable .
In the Autos tab (While Debugging the variable value), the tmp_variable has the following values: tmp_variable { Path = "D:\abc\folder1", Name = "folder1" }
But unable to use any of such things.
I have tried writing
MessageBox.Show(tmp_variable[Name]);
and,
MessageBox.Show(tmp_variable.Name);
But nothing works. Everything shows error.