The hidden side-effect of enums and values

Hello and welcome, Recently I encountered an issue with enums, which I wanted to share in case someone else encounters it along the way. So what are enums? Enums are a list of numerical constants that help us in a number of situations, like for example when something can have a tag or a property … Continue reading The hidden side-effect of enums and values

IEnumerator and foreach

Hello and welcome, In my latest  post, I used the DirectoryInfo method called "EnumerateFiles". But if we look into the available methods for the DirectoryInfo, we will notice that there is also a "GetFiles" method that has the same overloads and number of parameters, but what is the difference between the two methods, and why did … Continue reading IEnumerator and foreach