August 2020

C# Enum

Enum is a value type which can be byte, short, int and long. We can use enum to avoid the occurrence of magic number. For example:         var season = dateSeason == 1 ? “Spring” : “other season” you might notice that when the project grows bigger, there will be more magic numbers you generate. […]

C# Enum Read More »