I am looking to do something like the pseudocode below without knowing what properties are available beforehand:
foreach(var property in folder){
     var propertyName = property.Name;
     var propertyValue = property.Value;
     //do other stuff with the values.
}
I would like to be able to do the same with a file (instead of a folder) as well.
Thanks in advance.
 
     
     
    