We’re rewarding the question askers & reputations are being recalculated! Read more.

Hot answers tagged


You should remove int dummyCounter = 1; and change the if's checking for folderStack.Count to an if..else like so //Ends the while loop if (folderStack.Count == 0) { break; } else { currentFolder = folderStack.Pop(); } While writing this I thought about this if (...


I have just two comments: The name dummyCounter is really terrible, you should find something more appropriate like currentDepth or something but you actually don't need this at all, you can use the folderStack and just ask it whether it's not empty with folderStack.Any() You use the same html snippet four times (!) <div class="row"> <div ...

Only top voted, non community-wiki answers of a minimum length are eligible