At the moment, I have a main folder which has 320 sub folders and I’m saving those folder names into to sql server DB in a temporarytable. Then I retrieve that data, consume it, and then delete it.
To pullout folder names I use:
`List<string> FolderInfoList = Directory.GetDirectories(stringFolderPath).ToList();`
My temporary tablehas 2 columns (ID, Name), of which ID is an auto increment field.
Then I save name detail into a second table which will be resulted

After that I retrieve each and every folder name using the id, I use and I will delete after using it.
Since my manager requested me to not to use database, I need to find an alternative solution. I know there is a way using Dictionary function but I don’t know how to use it or how to assign a unique id for an individual folder name or when I retrieve all the folders name List function, I retrieve them as a list, not individually. I need to manipulate same function using any alternative method.
you could try the following… it will then assign a unique guid for each folder stored in a new class for you